From RAD Studio API Documentation
Jump to: navigation, search


property MasterSource: TDataSource read GetDataSource write SetDataSource;


__property Data::Db::TDataSource* MasterSource = {read=GetDataSource, write=SetDataSource};


Type Visibility Source Unit Parent
property published
Data.SqlExpr TSQLTable


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

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.

See Also