Vcl.DBGrids.TDBGrid.DataSource
Delphi
property DataSource: TDataSource read GetDataSource write SetDataSource;
C++
__property DataSource;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| property | published | Vcl.DbGrids.pas Vcl.DBGrids.hpp |
Vcl.DBGrids | TDBGrid |
Description
Identifies the link to the dataset where the data-aware grid finds its data. {{#multireplace:Vcl.DBGrids.TDBGrid.DataSource|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:Vcl.DBGrids.TCustomDBGrid.DataSource|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:Vcl.DBGrids.TCustomDBGrid.DataSource|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.
Identifies the link to the dataset where the data-aware grid finds its data.
Set DataSource to the TDataSource object that links to the dataset where the data-aware grid should fetch its data. DataSource allows the data-aware grid to read from, write to, and navigate around the dataset.