Vcl.DBCtrls.TDBLookupControl.DataSource

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DataSource: TDataSource read GetDataSource write SetDataSource;

C++

__property Data::Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.DBCtrls.pas
Vcl.DBCtrls.hpp
Vcl.DBCtrls TDBLookupControl

Description

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

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.

See Also