RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDBGrid.CancelLayout Method

Decrements the LayoutLock property.

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

Applications cannot call this protected method. Data-aware grids call CancelLayout internally when postponing the recomputation of Columns.  

Each call to BeginLayout increments the LayoutLock property. Each call to EndLayout or CancelLayout decrements the LayoutLock property. If LayoutLock returns to 0 in a call to CancelLayout, the Columns property is not updated. CancelLayout is called from the DeferLayout method to decrement the LayoutLock and prevent the recomputation of Columns until a more appropriate time. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!