Calling TDataSet.DisableControls
disables the link between master/detail datasets. Is there another way to disable updating data-aware controls without affecting the master/detail relationship? I know I can set individual component's DataSource
to nil
, but this isn't the practical way for me.
This solution presumes you use separate TDataSource
instances for linking UI controls and for Master-Detail relations which - from a design perspective - is a good idea anyway.
The drawback of this solution: this cause some flickering in your UI.
You could:
TDataSource
instances that point to your TDataSet
instances but are not involved in Master-Detail relations.Enabled
property.Enabled
property to False
Enabled
property.