Vcl.DBCtrls.TDBEdit.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 TDBEdit

Description

Specifies the field from which the edit control displays data.

Set DataField to the field name of the field component that the check box represents:



DBEdit1.DataField := 'Company';



DBEdit1->DataField = "Company";



Access by the TDBEdit to the dataset in which the field is located is provided by a TDataSource component, specified in the DataSource property.

If the DataField refers to a database field that contains integer or floating-point data, only characters that are valid in such a field can be entered in the edit box. Characters that are not legal are not accepted.

See Also