Unit 'DB' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TDataSource.OnStateChange

Called whenever the state of the dataset changes.

Declaration

Source position: db.pas line 2157

published property TDataSource.OnStateChange : TNotifyEvent
  read FOnStateChange
  write FOnStateChange;

Description

OnStateChange is called whenever the TDataset.State property changes, and the datasource is enabled. It can be used in application code to react to state changes: enabling or disabling non-DB-Aware controls, setting empty values etc.

See also

TDatasource.OnUpdateData

  

Called whenever the data in the dataset must be updated.

TDatasource.OnStateChange

  

Called whenever the state of the dataset changes.

TDataset.State

  

Current operational state of the dataset.

TDatasource.Enabled

  

Enable or disable sending of events.


Documentation generated on: Dec 22 2024