RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMasterDataLink.OnMasterChange Event

Occurs after the Fields property changes.

Pascal
property OnMasterChange: TNotifyEvent;
C++
__property TNotifyEvent OnMasterChange;

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!