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

TGridColumn.SizePriority

The auto-sizing priority for the column.

Declaration

Source position: grids.pas line 622

published property TGridColumn.SizePriority : Integer
  read GetSizePriority
  write SetSizePriority
  stored IsSizePriorityStored;

Description

0 indicates that the column is not one of the auto-sized columns in the Grid control. A non-zero value causes the column width to be adjusted when AutoFillColumns is enabled in the Grid control. If all of the columns in a grid control have SizePriority set 0, the last column is resized when AutoFillColumns is enabled.

Use MinWidth and MaxWidth to set the smallest and largest sizes for the column when the column is resized - either manually (by dragging the header border) or when AutoFillColumns is enabled in the Grid control.

Use Width to set the default size for the column in pixels.

See also

TGridColumn.MinSize

  

The minimum size for the column in pixels.

TGridColumn.MaxSize

  

The maximum size for the column in pixels.

TGridColumn.Width

  

The display width in pixels for the column on its Grid control.

TGridColumn.Grid

  

The grid control to which this column belongs.

TCustomGrid.Columns

  

Definitions for the columns displayed the grid.

TCustomGrid.AutoFillColumns

  

Indicates whether columns are automatically resized to fill the visible area in the grid.


Version 4.0 Generated 2025-05-03 Home