Skip to content

TDataSource.Enabled

Enable or disable sending of events.

Declaration

Source position: db.pas line 2160

published property Enabled: Boolean default True;

Description

Enabled is by default set to True: the datasource instance communicates events from the dataset to components connected to the datasource, and vice versa: components can interact with the dataset. If the Enabled property is set to False then no events are communicated to connected components: it is as if the dataset property was set to Nil. Reversely, the components cannot interact with the dataset if the Enabled property is set to False.

See also

Name Description
TDataset Base class for records-based data-access.
TDatasource.Dataset Dataset this datasource is connected to.
TDatasource.AutoEdit Should the dataset be put in edit mode automatically.