Home > Back-end >  After using Delphi PageControl loading form data association problem
After using Delphi PageControl loading form data association problem

Time:09-23





FrmKH PageControl is loaded,
FrmKHEDIT FrmKH window open,
Now I want to use FrmKH data,
FrmKH error, do not know,

The data association problem after PageControl loading form, useful a friend to give directions,

CodePudding user response:

Create a datamodule unit management data set, don't make a circular reference,

CodePudding user response:

PageControl embedded in the form, the last time I was out of the question,

Later before the call form the data directly associated DBGrid, DataSource all assignment again again.

Should be a child form data source has not been created before creating loss problem of the DataSource.

CodePudding user response:

1, the dataset class on the DataMoudle
2, don't assignment in Formcreate events, should be in FormShow, or do a custom event, on FormShow again after the completion of execution more stable
3, try not to assign the dataset class, it is good to use directly
  • Related