Jump to content

Recommended Posts

Posted

When I use dbgrid roweditor and input a value 0 to a cell (decimal field with Null value initially) and click confirm , it actually won't save the zero value !

But if I first input a non-zero value and save, then I edit again and input a value 0, it will save. 

Please fix it if it's a bug 

Posted
On 9/14/2020 at 11:45 AM, allenchow said:

When I use dbgrid roweditor and input a value 0 to a cell...

Hello,

Can you use following events of your DataSet?

procedure TMainForm.ClientDataSet1BeforePost(DataSet: TDataSet);
begin
  //...
end;

procedure TMainForm.ClientDataSet1NewRecord(DataSet: TDataSet);
begin
  //...
end;

 

  • 2 weeks later...
Posted
5 hours ago, allenchow said:

Any fixed instead of using unidbedit as an editor for that field ??

 

On 9/16/2020 at 4:06 PM, Sherzod said:

procedure TMainForm.ClientDataSet1BeforePost(DataSet: TDataSet); 
begin 
  //... 
end; 
procedure TMainForm.ClientDataSet1NewRecord(DataSet: TDataSet); 
begin 
  //... 
end;

 

 

  • 2 weeks later...
Posted
On 9/29/2020 at 11:13 PM, Sherzod said:

 

 

I can’t get your point. The user will input any value they want including 0, we don’t initiate any value beforehand or afterwards.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...