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

TComponentDataLink

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

Maintains an association between a component and a dataset

Declaration

Source position: dbgrids.pas line 196

type TComponentDataLink = class(TDatalink) end;

protected

  procedure RecordChanged(); override;

  

Signals the OnRecordChanged event handler when assigned

  procedure DataSetChanged; override;

  

Signals the OnDatasetChanged event handler when assigned

  procedure ActiveChanged; override;

  

Signals an event handler when the Active property is changed

  procedure LayoutChanged; override;

  

Signals the OnLayoutChanged event hander when assigned

  procedure DataSetScrolled(); override;

  

Signals the OnDataSetScrolled event handler when assigned

  procedure FocusControl(); override;

  

Signal the OnFocusControl event handler when assigned

  procedure CheckBrowseMode; override;

  

Calls the inherited method

  procedure EditingChanged; override;

  

Signals the OnEditingChanged event handler when assigned

  procedure UpdateData; override;

  

Signals the OnUpdateData event handler when assigned

  function MoveBy(); override;

  

Moves the position in the dataset by the specified number of rows

  property Modified: Boolean; [rw]

  

Indicates if the component or the linked dataset has been changed

public

  property OnRecordChanged: TFieldNotifyEvent; [rw]

  

OnRecordChanged - event handler for a change in the current record

  property OnDataSetChanged: TDatasetNotifyEvent; [rw]

  

OnDataseChanged - 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]

  

OnDataseOpen - 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 OnFocusControl: TFocusControlEvent; [rw]

  property OnLayoutChanged: TDataSetNotifyEvent; [rw]

  

OnLayoutChanged - event handler when the layout of the data set has changed

  property OnDataSetClose: TDataSetNotifyEvent; [rw]

  

OnDataseClose - event handler when the data set is closed

  property OnDataSetScrolled: TDataSetScrolledEvent; [rw]

  

OnDataseScrolled - 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 dataset

  property Fields []: TField; [r]

  

Fields - an indexed array containing the Fields of the dataset

  property VisualControl;

  

Inheritance

TComponentDataLink

  

Maintains an association between a component and a dataset

|

TDatalink

?

TObject

Description

TComponentDataLink is a TDatalink descendant that maintains an association between a component and its linked dataset. TComponentDataLink coordinates the actions of the component and the dataset, and allows the component to respond to data events. TComponentDataLink defines event handlers which can be used forward dataset events to the component implementation.

TComponentDataLink is the type used to implement the TDBGrid.DataLink property.

See also

#lcl.DBGrids.TCustomDBGrid.DataLink

#lcl.DBGrids.TDBGrid.DataLink

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