You must call the TDataSet method. GetDetailDataSets . If the list is not empty, then this data set is the main data set for the data sets in the list. For instance:
var oDetails: TList; lIsMaster: Boolean; ... oDetails := TList.Create; try myDataSet.GetDetailDataSets(oDetails); lIsMaster := oDetails.Count > 0; finally oDetails.Free; end;
source share