Vcl.DBCtrls.TDBText.DataField

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DataField: string read GetDataField write SetDataField;

C++

__property System::UnicodeString DataField = {read=GetDataField, write=SetDataField};

Properties

Type Visibility Source Unit Parent
property published
Vcl.DBCtrls.pas
Vcl.DBCtrls.hpp
Vcl.DBCtrls TDBText

Description

Specifies the field whose value is displayed by the database text control.

Use DataField to bind the database text control to a field in the dataset. To fully specify a database field, both the dataset and the field within that dataset must be defined. The DataSource property of the control specifies the dataset that contains the DataField.



DBText1.DataField := 'Company';



DBText1->DataField = "Company";



See Also