Sign in Join
FPDoc Onlineexperiment

TFieldDataLink.LayoutChanged procedure

Member of TFieldDataLinkprotectedIn unit DBCtrls

LayoutChanged- called if layout is changed: tests validity of field then calls OnLayoutChange event handler.

Declaration

pascal
procedure LayoutChanged; override

Description

LayoutChanged is an overridden procedure called when the field binding in the linked dataset for a data-aware Control has been changed. LayoutChanged calls the ValidateField method to ensure that the Field is valid / up-to-date, or set to Nil when the FieldName does not exist in the linked dataset. If the Field is assigned (not Nil), the EditingChanged and RecordChanged methods are called.

LayoutChanged does not call the inherited method.

LayoutChanged is used primarily in the implementation of methods in TCustomDBGrid and descendent classes.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.