Hey guys good morning,
i got a DBGrid and the UniDac components. I a use a popupmenu and select a row. I fill via the onclick event from the popupmenu a new form with my data in my TEdit.
Now the problem is, that i want to edit my data which i selected from the dbgrid.
This code works until dbgrid is refreshed and then the old values are back again in my dbgrid. How can i change it for the mysql table too not only for the dbgrid?
My actually Code:
FQuery.Edit;
FQuery.FieldByName('CfgUID').AsString := Edit4.Text;
FQuery.FieldByName('CfgMod').AsString := Edit1.Text;
FQuery.Post;
解决方案是禁用CachedUpdates或在发布后调用ApplyUpdates。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.