Page 1 of 1

How to do a CRDBGRID refresh?

Posted: Thu 27 Sep 2007 10:49
by NetSupport
Hi :D ,

I use a CRDBGRID, but cannot refresh programmatically. Using DBNAVIGATOR, it works fine.

Does anyone know how to refresh programmatically? CRDBGRID.refresh does not work.

with kind regards,

Ruud

Posted: Thu 27 Sep 2007 11:40
by Antaeus
The TCRDBGrid has no mechanism to refresh data. You should call the Refresh method of the underlying DataSet. It may look like this:

Code: Select all

   CRDBGrid1.DataSource.DataSet.Refresh;

Thanks! It works!

Posted: Thu 27 Sep 2007 11:49
by NetSupport
Antaeus wrote:The TCRDBGrid has no mechanism to refresh data. You should call the Refresh method of the underlying DataSet. It may look like this:

Code: Select all

   CRDBGrid1.DataSource.DataSet.Refresh;
Thanks, Anateus! It works!

Your quick reply is appreciated!