Vcl.DBCtrls.TDBCheckBox.DataSource
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 | published | Vcl.DBCtrls.pas Vcl.DBCtrls.hpp |
Vcl.DBCtrls | TDBCheckBox |
Description
Links the check box to a dataset.
Specify the data source component through which the data from a dataset component is provided to the TDBCheckBox. To allow the check box to represent the data for a field, both the DataSource and the DataField properties must be set.
DBCheckBox1.DataSource := DataSource1;
DBCheckBox1->DataSource = DataSource1;