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

TCustomStringGrid.AutoSizeColumn

AutoSizeColumn - automatically adjust width of column to accommodate widest text

Declaration

Source position: grids.pas line 1425

public procedure TCustomStringGrid.AutoSizeColumn(

  aCol: Integer

);

Description

This procedure sets the column width to the size of the widest text it finds in all rows for the column aCol.

Tip: see the goDblClickAutoSize option to allow columns to be automatically resized when doubleClicking the column border.

This page is hosted on Get Lazarus Code and Component Repository at SourceForge.net. Fast, secure and Free Open Source software downloads