Enabling and Disabling the Data Source

From RAD Studio
Jump to: navigation, search

Go Up to Associating a Data Control with a Dataset

The data source has an Enabled property that determines if it is connected to its dataset. When Enabled is True, the data source is connected to a dataset.

You can temporarily disconnect a single data source from its dataset by setting Enabled to False. When Enabled is False, all data controls attached to the data source component go blank and become inactive until Enabled is set to True. It is recommended, however, to control access to a dataset through the DisableControls and EnableControls methods of a dataset component because they affect all attached data sources.

See Also