RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDBGrid.LayoutLock Property

Counts the number of times BeginLayout has been called without an EndLayout or CancelLayout call.

Pascal
property LayoutLock: Byte;
C++
__property Byte LayoutLock;

Use LayoutLock to determine when the column bindings change. Whenever a column width or binding changes or the fields in the data source change, the BeginLayout method is called. BeginLayout increments LayoutLock to keep track of the fact that the column bindings are changing. When changes are complete, the EndLayout method is called. EndLayout decrements LayoutLock. When LayoutLock returns to 0, the data-aware grid knows that all changes are complete, and the Fields and Columns properties are updated. 

 

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