[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Provides access to the dataset displayed in the grid.
Source position: dbgrids.pas line 568
public property TCustomDBGrid.DataSource : TDataSource |
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 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.
lazarus-ccr.sourceforge.net |