TDataSource.OnStateChange¶
Called whenever the state of the dataset changes.
Declaration¶
Source position: db.pas line 2161
published property OnStateChange: TNotifyEvent;
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¶
| Name | Description |
|---|---|
| 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. |