allenchow Posted September 14, 2020 Share Posted September 14, 2020 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 More sharing options...
Sherzod Posted September 14, 2020 Share Posted September 14, 2020 Hello, We will check this behavior. Link to comment Share on other sites More sharing options...
allenchow Posted September 15, 2020 Author Share Posted September 15, 2020 ANy new ? Link to comment Share on other sites More sharing options...
Sherzod Posted September 16, 2020 Share Posted September 16, 2020 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 More sharing options...
allenchow Posted September 16, 2020 Author Share Posted September 16, 2020 Currently I'm using UniDBEDIT as an editor for that column (even UniEdit can't do the job) Is it a bug ? Link to comment Share on other sites More sharing options...
allenchow Posted September 29, 2020 Author Share Posted September 29, 2020 Any fixed instead of using unidbedit as an editor for that field ?? Link to comment Share on other sites More sharing options...
Sherzod Posted September 29, 2020 Share Posted September 29, 2020 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 More sharing options...
allenchow Posted October 10, 2020 Author Share Posted October 10, 2020 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now