RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDBGrid.AcquireLayoutLock Method

Calls BeginLayout if the table is not currently being reformatted.

Pascal
function AcquireLayoutLock: Boolean;
C++
__fastcall Boolean AcquireLayoutLock();

Applications cannot call this protected method. AcquireLayoutLock is called before recomputing Columns when the fields in the dataset change or when the Columns property changes. AcquireLayoutLock returns true if the table is not already being laid out, to indicate that the computation of Columns should proceed. AcquireLayoutLock prevents the computation of Columns from looping endlessly because of the changes that must occur during the computation. 

 

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