[Overview][Types][Classes][Procedures and functions][Index] | Reference for unit 'DBGrids' (#lcl)

# TComponentDataLink

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TComponentDataLink - forms a link between a component and a DataSet and contains event handlers to operate on the records

## Declaration

Source position: dbgrids.pas line 151

`type TComponentDataLink = class(TDataLink)`
`protected`
`procedure RecordChanged(); override;` |  | RecordChanged - calls the OnRecordChanged event handler if it has been assigned
`procedure DataSetChanged; override;` |  | DataSetChanged - calls the OnDataSetChanged event handler if it has been assigned
`procedure ActiveChanged; override;` |  | ActiveChanged - if there has been a change in the Active status, calls the appropriate event handler for the change
`procedure LayoutChanged; override;` |  | LayoutChanged - calls the OnLayoutChanged event handler if it is assigned
`procedure DataSetScrolled(); override;` |  | DataSetScrolled - calls the OnDataSetScrolled event handler if it is assigned
`procedure FocusControl(); override;` |  |
`procedure CheckBrowseMode; override;` |  |
`procedure EditingChanged; override;` |  | EditingChanged - calls OnEditingChanged if it is assigned
`procedure UpdateData; override;` |  | UpdateData - calls OnUpdataData event handler if it is assigned
`function MoveBy(); override;` |  |
`property Modified: Boolean; [rw]` |  | Modified - True if the data have been modified
`public`
`property OnRecordChanged: TFieldNotifyEvent; [rw]` |  | OnRecordChanged - event handler for a change in the current record
`property OnDataSetChanged: TDatasetNotifyEvent; [rw]` |  | OnDataSetChanged - event handler for a change in the attached Data Set
`property OnNewDataSet: TDataSetNotifyEvent; [rw]` |  | OnNewDataSet - event handler for formation of a link to a new data set
`property OnDataSetOpen: TDataSetNotifyEvent; [rw]` |  | OnDataSetOpen - event handler when the data set is open
`property OnInvalidDataSet: TDataSetNotifyEvent; [rw]` |  | OnInvalidDataSet - event handler when the data set is non-valid
`property OnInvalidDataSource: TDataSetNotifyEvent; [rw]` |  | OnInvalidDataSource - event handler when the data source is non-valid
`property OnLayoutChanged: TDataSetNotifyEvent; [rw]` |  | OnLayoutChanged - event handler when the layout of the data set has changed
`property OnDataSetClose: TDataSetNotifyEvent; [rw]` |  | OnDataSetClose - event handler when the data set is closed
`property OnDataSetScrolled: TDataSetScrolledEvent; [rw]` |  | OnDataSetScrolled - event handler when the data set is scrolled
`property OnEditingChanged: TDataSetNotifyEvent; [rw]` |  | OnEditingChanged - event handler for a change in the Editing property
`property OnUpdateData: TDataSetNotifyEvent; [rw]` |  | OnUpdateData - event handler for implementing any pending changes to data
`property DataSetName: String; [rw]` |  | DataSetName - the (string) name of the attached data set
`property Fields: TField; [r]` |  | Fields - an indexed array containing the fields of the dataset
`property VisualControl;` |  |
`end;`

## Inheritance

`TComponentDataLink` |  | TComponentDataLink - forms a link between a component and a DataSet and contains event handlers to operate on the records
`TDataLink`
`TPersistent`
`TObject`

The latest version of this document can be found at lazarus-ccr.sourceforge.net .