[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 460

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

TCustomDBGrid.BeginLayout

  

BeginLayout starts producing layout changes for the grid control.

TCustomDBGrid.LayoutChanged

  

LayoutChanged links columns to Fields and inserts any required automatic columns.

TCustomDBGrid.Options

  

Contains the optional features or behaviors that are enabled for the grid control.

TCustomDBGrid.AutoAdjustColumn

  

Adjust properties in the specified column to display the longest value.

TDBGridColumns.LinkFields

  

Associates column items with the corresponding Fields in the Dataset.

TDBGridColumns.Update

  

Redraws the Grid control that owns the column collection.


Version 3.2 Generated 2024-02-25 Home