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

# TGridColumn.Grid

The grid control to which this column belongs.

## Declaration

Source position: grids.pas line 605

`public property TGridColumn.Grid : TCustomGrid read GetGrid;`

## Description

Grid is a read-only TCustomGrid property with the grid control where the column instance is stored. Grid allows the column definition to access properties, methods, and events found in the TCustomGrid control where the column is used.

The property value contains the Collection (TGridColumns) for the item, and is passed as an argument to constructor for the class instance. The property value is Nil if the collection is not descended from TGridColumns.

Example uses can be found in methods like SetIndex, GetWidth, GetDefaultWidth, GetDefaultColor, FillDefaultFont and ScaleFontsPPI.

## See also

TCustomGrid |  | Implements the base class for grid controls.
TCustomGrid.Columns |  | Definitions for the columns displayed the grid.
TGridColumns |  | Collection used to store column definitions for a grid control.
TCollectionItem.Collection