How to get dataset to populate data into dbgrid in Delphi 6?

Posted by Chris J on Stack Overflow See other posts from Stack Overflow or by Chris J
Published on 2010-06-01T15:37:17Z Indexed on 2010/06/01 15:43 UTC
Read the original article Hit count: 195

Filed under:
|
|

I have created a DBGrid in Delphi 6 and tied it to a DataSource contained in a DataModule. The Dataset for that source in also located in the same module. In the OnShow event for the form, I activate the dataset and set a label equal to the rowcount for the dataset. This shows several hundred rows but nothing shows in the dbgrid. If I activate the dataset in the IDE, the grid populates with the expected data. Does anyone have any idea why this behaviour would change between the IDE and normal runtime? We are also using SDAC connection components.

All 3rd party component choices are not mine to change.

I can elaborate as necessary for clarification, but I mainly need troubleshooting ideas to start at.

© Stack Overflow or respective owner

Related posts about delphi

Related posts about dbgrid