[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'db' (#fcl)

TDataSource.Enabled

Enable or disable sending of events

Declaration

Source position: db.pas line 1514

published property TDataSource.Enabled: Boolean
  read FEnabled
  write SetEnabled
  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

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

The latest version of this document can be found at lazarus-ccr.sourceforge.net.