RAD Studio VCL Reference
TADODataSet.DataSetField Property

Indicates the persistent TDataSetField object that owns a nested dataset.

property DataSetField: TDataSetField;
__property TDataSetField DataSetField;

Use DataSetField when the dataset is the nested detail set of another dataset, such as an Oracle8 nested dataset. Read DataSetField to access the data set field component in the master dataset that includes this dataset as a detail. Set DataSetField to a field component in the master dataset to assign this dataset as the value of that field.

Note: When setting the DataSetField property, the dataset must be of (or a descendant of) the class specified by the master dataset's NestedDataSetClass property. Otherwise, setting DataSetField raises an exception. Further, setting DataSetField to a TDataSetField that is contained in the same dataset raises an exception (A dataset can't be nested in itself).

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