arilotta Posted December 11, 2017 Share Posted December 11, 2017 Hi, I'm using the DevArt components to access the DB (Oracle). They feature the RefresRecord command, a very useful statement that ca be used to refetch just the current record from the DB, without the need to refetch the whole dataset, which can be very time-consuming. For example, I use it extensively on VCL to get the fields that are updated by some DB triggers, or to get back the changes performed by DB stored procedures. It seems that this command is not supported by UniGUI, issuing a RefreshRecord on a dataset does not updates the DbGrid, even though the underlying data changes. Is there something I could use to force the DBGrid to update ? Thank you Andrea Link to comment Share on other sites More sharing options...
Sherzod Posted December 11, 2017 Share Posted December 11, 2017 Hi, UniDBGrid1 -> Options.AutoRefreshRow = True; UniDBGrid1.RefreshCurrentRow(); Best regards, Link to comment Share on other sites More sharing options...
arilotta Posted December 11, 2017 Author Share Posted December 11, 2017 RefreshCurrentROw did the trick ! Thank you again, it works superbly ! Andrea Link to comment Share on other sites More sharing options...
sroberto Posted December 14, 2017 Share Posted December 14, 2017 UniDBGrid1.Refresh; Eu uso assim também e funciona normalmente, Link to comment Share on other sites More sharing options...
arilotta Posted December 15, 2017 Author Share Posted December 15, 2017 @Silvio Hi , Refresh should refresh thw whole grid, while I just need to refresh the current row. RefreshCurrentRow is much faster ! Link to comment Share on other sites More sharing options...
Recommended Posts