[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'DBGrids' (#lcl)

TCustomDBGrid.EndLayout

EndLayout finishes layout changes for the control

Declaration

Source position: dbgrids.pas line 458

protected procedure TCustomDBGrid.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 DoLayoutChanged method is called.

See also

#lcl.DBGrids.TCustomDBGrid.BeginLayout

  

BeginLayout starts producing layout changes for the grid control

#lcl.DBGrids.TCustomDBGrid.DoLayoutChanged

  

Update the grid and its scrollbars when its layout has changed

#lcl.DBGrids.TCustomDBGrid.LayoutChanged

  

LayoutChanged links columns to Fields and inserts any required automatic columns

#lcl.DBGrids.TCustomDBGrid.Options

  

Stores values from the TDbGridOption enumeration

#lcl.DBGrids.TCustomDBGrid.AutoAdjustColumn

#lcl.DBGrids.TDBGridColumns.LinkFields

  

Associates column items with the corresponding Fields in the Dataset

#lcl.DBGrids.TDBGridColumns.Update

  

Redraws the Grid control that owns the collection

The latest version of this document can be found at lazarus-ccr.sourceforge.net.