Vcl.DBGrids.TCustomDBGrid.LayoutChanged

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure LayoutChanged; virtual;

C++

virtual void __fastcall LayoutChanged();

Properties

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

Description

Recomputes the Columns property.

Applications cannot call this protected method. It is called automatically in response to changes the affect the layout of the columns. These include

Changes to the fields in the dataset.

Changes in the Options property that affect the layout.

Changes to the TitleFont property.

LayoutChanged calls AcquireLayoutLock to initiate the changes to Columns. If AcquireLayoutLock does not indicate that the call to LayoutChanged is recursive, LayoutChanged calls EndLayout to perform the actual computation.

See Also