DBGrid is empty in runtime lazarus / 16-Databases ---------------------------------------------------------------------- alain.janquart · 2020-09-14 09:37 Hello, I'm created a form with a DBgrid. In my datamodule I created the needed Connection (TZConnection), Query (TZReadOnlyQuery) and Datasource (TDataSource) to fill my DBgrid. When I enable my datasource in designtime, I see the data in the grid. So far so good. But when running the program, I just see an empty grid. Any idea what is going wrong here? Thanks Lainkes ---------------------------------------------------------------------- egsuh · 2020-09-17 04:54 Datasource.enabled does not operate as expected when set programmatically. Set it enabled at design time, and run the program. Then you may open/close Dataset or set TDBGrid visible or not.