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

# TFieldDataLink.LayoutChanged

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

## Declaration

Source position: dbctrls.pp line 71

`protected procedure TFieldDataLink.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.

Remark: | LayoutChanged does not call the inherited method.

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

## See also

TFieldDataLink.Control |  | The Control to which this datalink is attached.
TFieldDataLink.Field |  | The Field to which the datalink is attached.
TFieldDataLink.FieldName |  | FieldName - the name of the attached field, stored as a string.
TFieldDataLink.EditingChanged |  | EditingChanged - method for processing changes in the Editing property.
TFieldDataLink.RecordChanged |  | RecordChanged - triggered if the contents of the current record change; calls Reset.
TCustomDBGrid |  | TCustomDBGrid is the base class for TDBGrid.