RAD Studio VCL Reference
|
Specifies a data source component for the master dataset when establishing a detail-master relationship between this dataset and another one.
property MasterSource: TDataSource;
__property TDataSource MasterSource;
Use MasterSource to specify the name of the data source component whose DataSet property identifies a dataset to use as a master table in establishing a detail-master relationship between this dataset and another one.
At design time choose an available data source from the MasterSource property's drop-down list in the Object Inspector.
After setting the MasterSource property, specify which fields to use in the master table by setting the MasterFields property. At runtime each time the current record in the master table changes, the new values in those fields are used to select corresponding records in this dataset for display.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|