RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDBGrid.EndLayout Method

Decrements the LayoutLock property and recomputes the Columns property if LayoutLock reaches 0.

Pascal
procedure EndLayout;
C++
__fastcall EndLayout();

Applications cannot call this protected method. Data-aware grids call EndLayout internally after changes to the Columns property or the dataset. EndLayout decrements the LayoutLock property which was previously incremented by BeginLayout before the Columns property was changed or when notification of the change to the dataset was received. 

If LayoutLock returns to 0, EndLayout updates the Fields property to match both the bindings of the Columns property and the fields available in the dataset. The Columns property is then updated in turn to match the Fields property. This ensures that the Columns property matches both the specified column bindings and the fields available in the dataset. 

 

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