[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'DBCtrls' (#lcl)

TCustomDBListBox.DataSource

Provides access to the linked dataset for the control.

Declaration

Source position: dbctrls.pp line 380

public property TCustomDBListBox.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

TCustomDBListBox.DataField

  

Name for the field in the linked dataset used in the control.

TCustomDBListBox.Field

  

Field definition in the linked dataset for the control.

ChangeDataSource

  

Performs actions needed when the datasource in a control with the specified data link is changed.

TDataLink.DataSource

TDataSource


Version 4.0 Generated 2025-05-03 Home