Data.DB.TDataSet.DataSetField

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DataSetField: TDataSetField read FDataSetField write SetDataSetField;

C++

__property TDataSetField* DataSetField = {read=FDataSetField, write=SetDataSetField};

Properties

Type Visibility Source Unit Parent
property public
Data.DB.pas
Data.DB.hpp
Data.DB TDataSet

Description

Indicates the persistent TDataSetField object that owns a nested dataset.

Use DataSetField when the dataset is the nested detail set of another dataset, such as an Oracle8 nested dataset. Read DataSetField to access the dataset 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).

See Also