Vcl.DBGrids.TCustomDBGrid.AcquireLayoutLock
Delphi
function AcquireLayoutLock: Boolean;
C++
bool __fastcall AcquireLayoutLock();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.DbGrids.pas Vcl.DBGrids.hpp |
Vcl.DBGrids | TCustomDBGrid |
Description
Calls BeginLayout if the table is not currently being reformatted.
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.