RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSQLTable.MasterSource Property

Identifies the master dataset to use when linking this table as the detail of a master/detail relationship.

Pascal
property MasterSource: TDataSource;
C++
__property TDataSource MasterSource;

Use MasterSource to indicate the dataset that serves as a master table when establishing a master/detail relationship. Specify a TDataSource component whose DataSet property identifies the desired master dataset. 

A master/detail relationship is established when you set the MasterSource property to identify a master dataset, the MasterFields property to identify the fields in that master dataset whose values must be matched by linking fields in this (detail) SQL table, and the IndexName or IndexFieldNames property to identify the linking fields in this SQL table.  

MasterSource is the same as the DataSource property, except that it is published. 

 

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