Vcl.DBLookup.TDBLookupCombo.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.DbLookup.pas Vcl.DBLookup.hpp |
Vcl.DBLookup | TDBLookupCombo |
Description
Identifies the link to the dataset where TDBLookupCombo finds its data.
Set DataSource to the TDataSource object that links to the dataset where the DB lookup combo should fetch its data. DataSource allows the lookup combo to read from, write to, and navigate around the dataset.
DBLookupCombo1.DataSource := DataSource1;
DBLookupCombo1->DataSource = DataSource1;