Jump to content

DBGRID Row Editor bug ?


allenchow

Recommended Posts

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 

Link to comment
Share on other sites

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;

 

Link to comment
Share on other sites

  • 2 weeks later...
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;

 

 

Link to comment
Share on other sites

  • 2 weeks later...

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...