RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBListBox.DataSource Property

Links the listbox to a dataset.

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

Specify the data source component that identifies the dataset the data is found in. To allow the listbox to represent the data for a field, both the DataSource and the DataField properties must be set. 

Specify the data source component that identifies the dataset in which the target field is found. To allow the listbox to represent the data for a field, both the DataSource and the DataField properties must be set.

DBListBox1.DataSource := DataSource1;

 

DBListBox1->DataSource = DataSource1;

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!