Sign in Join
FPDoc Onlineexperiment

TCustomDBGrid.EndLayout procedure

Member of TCustomDBGridprotectedIn unit DBGrids

EndLayout finishes layout changes for the control.

Declaration

pascal
procedure EndLayout

Description

EndLayout is a procedure used along with BeginLayout to minimize the number of times layout changed notification events are triggered by the control. Layout changes occur when the control enables certain values in its Options property when AutoAdjustColumn is called and when the Columns collection links to Fields in the associated dataset.

The grid maintains an internal counter that tracks the number of times BeginLayout has been called to start a layout change for the control. EndLayout decrements that counter, and when it reaches 0 (zero), the private DoLayoutChanged method is called; scroll bar information is also updated in this method.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.