TuanHoang Posted October 12, 2017 Share Posted October 12, 2017 Hello I want to refresh column total of row after edit column qty. I change total on qty field event OnChange, qty's OnChange : tblOrderDetailTotal.Value := tblOrderDetailQty.Value * tblOrderDetailAmount.Value; On VCL field total will be update with new value, but on Unigui it is not updated. If I call DataSet's Post or click Post on DBNavigator field total will be update. How to refresh column total after event qty's OnChange. Sorry for my English. Tuan. 1 Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted October 12, 2017 Share Posted October 12, 2017 Please set DBGrid.Options.AutoRefreshRow = True Also you can use unidbgrid.refreshcurrentrow; Quote Link to comment Share on other sites More sharing options...
TuanHoang Posted October 12, 2017 Author Share Posted October 12, 2017 (edited) Please set DBGrid.Options.AutoRefreshRow = True Also you can use unidbgrid.refreshcurrentrow; Thanks you. RefreshCurrentRow is working. But I has error when press tab to next col when grid is editing, column 3's value must be 0 after change value of column 2. Here is error when press tab : Here is ok when press enter : Is there any way to put delay after column 2 lost focus before column 3 has focus? Edited October 12, 2017 by Tuan Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 12, 2017 Administrators Share Posted October 12, 2017 Please specify your uniGUI version and edition. Quote Link to comment Share on other sites More sharing options...
TuanHoang Posted October 15, 2017 Author Share Posted October 15, 2017 Please specify your uniGUI version and edition. I am using Complete Professional 1.0.0.1410 Trial. Quote Link to comment Share on other sites More sharing options...
TuanHoang Posted October 15, 2017 Author Share Posted October 15, 2017 I try to use TUniDBEdit instead of TUniEdit. Value of column 4 will be updated from 200 to 0 when press tab., but originalValue is still 200. I debug http and found request : Ajax=1&IsEvent=1&Obj=O229&Evt=edit&VR=&V=0.00&O=200&R=0&C=3&RN=undefined&_S_ID=EtfhXXORhh100714B47&_seq_=22&_uo_=O16D Is there any way to update originalValue to value when control has focus? 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.