Vcl.DBCGrids.TDBCtrlGrid.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.DbCGrids.pas Vcl.DBCGrids.hpp |
Vcl.DBCGrids | TDBCtrlGrid |
Description
Identifies the link to the dataset where the TDBCtrlGrid object finds its data.
Set DataSource to the TDataSource object that links to the dataset where the grid should fetch its data. DataSource allows the data-aware grid to read from, write to, and navigate around the dataset.
DBCtrlGrid1.DataSource := DataSource1;
DBCtrlGrid1->DataSource = DataSource1;
See Also