EntityDataset update when underlying table changes

Discussion of open issues, suggestions and bugs regarding EntityDAC
Post Reply
ewong
Posts: 21
Joined: Thu 20 Jan 2011 01:22

EntityDataset update when underlying table changes

Post by ewong » Tue 30 Mar 2021 09:34

Hi,

I'm not entirely sure whether this is a dataset issue, or a database issue or a model issue.

I have an EntityConnection, EntityXMLModel, Datasource, EntityDataset and a grid on a form.

The dataset is linked to a database table (via the EntityConnection/XML Model). The datasource is connected to the entitydataset. The dbgrid is linked to the datasource.

Right now, when I run the application, the dbgrid populates with the information as gleamed off the database table. But when some more items are added to the database table, the dbgrid doesn't know anything about these changes.

My question is, how do I get the dbgrid to update automatically? At this moment, I'm just thinking of using dbgrid.datasource.dataset.refresh() with a timer; but this seems a little (for lack of a better word), silly. Is there a better way?

Thanks

Ed

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: EntityDataset update when underlying table changes

Post by MaximG » Mon 06 Sep 2021 12:45

For technical reasons, we received the messages sent by you with a long delay. Thank you for the information, however, it's not enough to reproduce the issue. Please compose and send us a simplest sample, execution of which causes the issue. In addition, we will need the model (*.enml) used in this sample

Post Reply