Gets / sets a master data source, used to establish a master-detail relationship with this dataset.
Use MasterSource to specify the data source linked to a dataset, which will be used as master dataset in master-detail relationship between this and specified datasets.
property MasterSource: TDataSource;
ADMemTable1.IndexFieldNames := 'CustomerID'; ADMemTable1.MasterSource := CustomersDS; ADMemTable1.MasterFields := 'ID';
See AnyDAC\Samples\Comp Layer\TADQuery\MasterDetail demo for details.
What do you think about this topic? Send feedback!