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

TCustomGrid.AutoFillColumns

Automatically resizes columns so they fill all of the visible area in the grid.

Declaration

Source position: grids.pas line 1197

protected property TCustomGrid.AutoFillColumns : Boolean
  read FAutoFillColumns
  write SetAutoFillColumns
  default False;

Description

When this option is turned on, the grid will resize all columns to fill the grid's client width. The resized columns are determined using the following conditions:

  1. Fixed Columns are not resized.
  2. If the grid has Custom Columns, all columns with SizePriority set to 0 are not resized.

Note that Custom Columns are initially created with SizePriority set to 1. For TDbGrid, which automatically adds Custom Columns, this means the user will not be able to resize these columns using the mouse.