Sign in Join
FPDoc Onlineexperiment

TCustomGrid.AutoAdjustColumn procedure

Member of TCustomGridprotectedIn unit Grids

Adjusts column properties to accommodate the largest value in the specified column.

Declaration

pascal
procedure AutoAdjustColumn(aCol: Integer); virtual

Arguments

aCol

Column number adjusted in the method.

Description

AutoAdjustColumn is called from the DblClick method when the values goColSizing and goDblClickAutoSize have been included in the Options property.

AutoAdjustColumn has an empty implementation in TCustomGrid, and must be overridden in a descendent class like TCustomStringGrid.

AutoAdjustColumn is called from the AutoAdjustColumns method. It also occurs when the mouse is double-clicked on the cell header and column auto-sizing (goColSizing) has been enabled in the Options for the grid control.

See also

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