Sign in Join
FPDoc Onlineexperiment

TCustomDBListBox.DataSource property

Member of TCustomDBListBoxpublicIn unit DBCtrls

Provides access to the linked dataset for the control.

Declaration

pascal
property DataSource: TDataSource read GetDataSource write SetDataSource;

Description

DataSource is a TDataSource property which contains the component used to access the linked dataset for the control. Read and write access for the property value are redirected to the DataSource property in the internal TFieldDataLink instance for the control. Changing the value in DataSource causes the ChangeDataSource routine to be called to perform notification events and assignments for the TFieldDataLink instance.

Use DataField to specify the name of the field in the linked dataset used to store the value selected in the control. Use Field to access the field definition and metadata for the column represented by DataField.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.