Vcl.DBCtrls.TDBComboBox.DataSource
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 | TDBComboBox |
Description
Links the combo box to a dataset.
Specify the data source component that identifies the dataset in which the target field is found. To allow the combo box to represent the data for a field, both the DataSource and the DataField properties must be set.
DBComboBox1.DataSource := DataSource1;
DBComboBox1->DataSource = DataSource1;