Data.DB.TMasterDataLink.OnMasterDisable
Delphi
property OnMasterDisable: TNotifyEvent read FOnMasterDisable write FOnMasterDisable;
C++
__property System::Classes::TNotifyEvent OnMasterDisable = {read=FOnMasterDisable, write=FOnMasterDisable};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | public | Data.DB.pas Data.DB.hpp |
Data.DB | TMasterDataLink |
Description
Occurs when the source dataset becomes inactive.
Write an OnMasterDisable event handler to respond when the source (master) dataset becomes inactive. When the source dataset is inactive, the field components in the Fields property can not be used to obtain the data from records in the source dataset. Thus, only information cached by the detail dataset that owns the TMasterDataLink can be used after OnMasterDisable until the next OnMasterChange event occurs.