RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDBGrid.LayoutChanged Method

Recomputes the Columns property.

Pascal
procedure LayoutChanged; virtual;
C++
virtual __fastcall LayoutChanged();

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!