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

TCustomDBComboBox.DataSource

Provides access to the dataset with content for the control.

Declaration

Source position: dbctrls.pp line 778

public property TCustomDBComboBox.DataSource : TDataSource
  read GetDataSource
  write SetDataSource;

Description

DataSource is a TDataSource property which provides access to the content for the data-aware control. DataSource is used in conjunction with the Field property to determine the dataset and field definition used when reading the value for the control.

Read and write access to the property value is redirected to the DataSource property in the internal TFieldDataLink instance used in the control. Assigning a new value to the property causes the ChangeDataSource routine to be called to apply the value to the internal TFieldDataLink instance.

Use the DataField property to specify the field name accessed in the linked dataset.

See also

TCustomDBComboBox.DataField

  

The name of the Field which provides the values displayed in the control.

TFieldDataLink.FieldName

  

FieldName - the name of the attached field, stored as a string.

ChangeDataSource

  

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

TDataSource

TDataLink.DataSource


Version 3.2 Generated 2024-02-25 Home