Data.DB.TMasterDataLink.OnMasterChange

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnMasterChange: TNotifyEvent read FOnMasterChange write FOnMasterChange;

C++

__property System::Classes::TNotifyEvent OnMasterChange = {read=FOnMasterChange, write=FOnMasterChange};

Properties

Type Visibility Source Unit Parent
event public
Data.DB.pas
Data.DB.hpp
Data.DB TMasterDataLink

Description

Occurs after the Fields property changes.

Write an OnMasterChange event handler to update the dataset that owns the TMasterSourceLink to reflect any changes that occurred in the source (master) dataset or the FieldNames property. The Fields property reflects the new state of the source (master) dataset and the FieldNames property. If FieldNames refers to any fields that disappeared from the source dataset, the Fields property contains undefined field components for those fields.

Typically, the OnMasterChange event handler updates the detail dataset to reflect those details that correspond to the master field values obtained from the Fields property.

See Also