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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...