Vcl.DBGrids.TCustomDBGrid.DataLink

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DataLink: TGridDataLink read FDataLink;

C++

__property TGridDataLink* DataLink = {read=FDataLink};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.DbGrids.pas
Vcl.DBGrids.hpp
Vcl.DBGrids TCustomDBGrid

Description

Helps the data-aware grid manage its link to the data source and respond to data events.

Applications should not need to use the DataLink property. It is exposed as a protected property so that component writers can use descendants of TGridDataLink to respond to additional data events.

DataLink helps TCustomDBGrid to

Resolve the field bindings specified by Columns with the fields in the dataset.

Respond to changes in the values of fields.

Respond to changes in record currency.

Respond to changes in the editing state of the dataset.

Keep track of unposted edits and discard or post them as appropriate.

See Also