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 Quote 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. Quote Link to comment Share on other sites More sharing options...
allenchow Posted September 15, 2020 Author Share Posted September 15, 2020 ANy new ? Quote 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; Quote 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 ? Quote 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 ?? Quote 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; Quote 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.