DisableControls also disables Master-Detail relationship

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ajasja
Posts: 7
Joined: Sun 29 Oct 2006 09:46

DisableControls also disables Master-Detail relationship

Post by ajasja » Tue 28 Nov 2006 18:37

Hello!

I have to DataSets (lets call them aMasterDS and aDetailDS) linked in a master detail relationship.
If a call
aMasterDS.DisableControls
then the detail data set relationship is no longer updated when I iterate through the master dataset. But without the "aMasterDS.DisableControls" I get a lot of flicker.

Is there a way to update the master-detail relationship without updating the data aware controls?

Best regards.
Ajasja Ljubetič

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Wed 29 Nov 2006 14:51

Try to change the value of the DetailDelay option of the aDetailDS object. You can find description of this option in MyDAC Help.

Post Reply