TCustomDBGrid.DataSource property
Provides access to the dataset displayed in the grid.
Declaration
property DataSource: TDataSource read GetDataSource write SetDataSource;Description
DataSource is a
TDataSource property which provides
access to the DataSet displayed in the database grid control. Read and write
access to the property are redirected to the DataLink property.
Reading the value for DataSource returns the corresponding value stored in
the TComponentDataLink instance.
Writing the value for DataSource sets the value in the TComponentDataLink
instance (when they are not the same). Write access to DataSource also resets
the width of columns in the grid by calling RenewColWidths.
UpdateActive is called to redraw the grid control after changes to
the DataSource and Columns properties.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
