Unit 'Grids' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TCustomStringGrid.AutoSizeColumn

Automatically adjusts the width of a column to accommodate the widest text value.

Declaration

Source position: grids.pas line 1773

public procedure TCustomStringGrid.AutoSizeColumn(

  aCol: Integer

);

Arguments

aCol

  

Column number resized in the method.

Description

AutoSizeColumn sets the column width to the length of the widest text found in the column specified by ACol.

Tip: Use goDblClickAutoSize in Options to allow columns to be automatically resized when doubleClicking the column border.

See also

TCustomStringGrid.AutoSizeColumns

  

Resizes all columns to fit in the longest text in each.