[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Signals an event handler when the Active property is changed.
Source position: dbgrids.pas line 215
protected procedure TComponentDataLink.ActiveChanged; override; |
ActiveChanged is a procedure used to call event handlers when the value in Active is changed.
When Active contains True, the Dataset for the class is read and compared to the value in the DatasetName property. When it differs from the stored value the change is for a new dataset, and the OnNewDataset event handler is signalled. If DatasetName is the same as the stored value, the OnDataseOpen event handler is signalled.
When Active contains False, the Datasource and Dataset are checked to ensure that the contain valid class instances. If Datasource is unassigned, the OnInvalidDataSource event handler is signalled. If Dataset is unassigned, the Dataset is being freed, and the OnInvalidDataSet event handler is signalled. If Dataset is assigned, the dataset has been closed and the OnDataSetClose event handler is signalled.
Version 4.0 | Generated 2025-05-03 | Home |