Vcl.DBGrids.TCustomDBGrid.CancelLayout
Delphi
procedure CancelLayout;
C++
void __fastcall CancelLayout();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.DbGrids.pas Vcl.DBGrids.hpp |
Vcl.DBGrids | TCustomDBGrid |
Description
Decrements the LayoutLock property.
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.