RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBLookupComboBox.DataSource Property

Links the lookup control to the dataset that contains the DataField.

Pascal
property DataSource: TDataSource;
C++
__property TDataSource DataSource;

Use DataSource to specify the data source component that identifies the dataset the lookup control represents. The lookup control represents a field in one table by displaying the value of a corresponding field in another table. DataSource links to the dataset for the field the control represents, as opposed to the ListSource, which links the lookup control to the lookup table that holds the field that is actually displayed. If the lookup control is used to edit data, the field that actually gets changed is the one in the DataSource. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!