Vcl.DBCtrls.TDBEdit.DataSource

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DataSource: TDataSource read GetDataSource write SetDataSource;

C++

__property Data::Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};

Properties

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

Description

Links the edit control to the dataset that contains the field it represents.

Use DataSource to specify the data source component through which the data from a dataset component is provided to the TDBEdit:



DBEdit1.DataSource := DataSource1;



DBEdit1->DataSource = DataSource1;



To allow the check box to represent the data for a field, both the DataSource and the DataField properties must be set.

See Also