Jump to content
uniGUI Discussion Forums
arilotta

UniDbGrid - RefreshRecord support

Recommended Posts

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

 

Share this post


Link to post
Share on other sites

Hi,

UniDBGrid1 -> Options.AutoRefreshRow = True;

UniDBGrid1.RefreshCurrentRow();

Best regards,

Share this post


Link to post
Share on other sites

RefreshCurrentROw did the trick !

Thank you again, it works superbly !

 

Andrea

Share this post


Link to post
Share on other sites

@Silvio

Hi , Refresh should refresh thw whole grid, while I just need to refresh the current row.

RefreshCurrentRow is much faster !

Share this post


Link to post
Share on other sites

×