Forum > Database

SQLite and DBGrid, when updated DataSet grid displays nothing

(1/1)

lainz:
Hi, I have a DBGrid with a DataSource and a DataSet, the normal setup. It's displayed correctly until my application downloads from an API an update to the table in the DataSet and reloads it. The grid is not functional anymore.

Is strange because I have another DBGrid and is working fine. Someone had this problem before, I readed this: https://forum.lazarus.freepascal.org/index.php?topic=40899.0

But did not help me at all.

Any setting, any special case when this is not working?

Soner:
Try this:



Dataset.disablecotrols;
Try

   //... Download, import

finally
 Dataset.EnableControls;
End;

lainz:
Thanks. Unfortunately our code already uses that technique with the bad result I described.

Navigation

[0] Message Index

Go to full version