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

# TCustomGrid.FirstGridColumn

Gets the position of the first column after any fixed columns in the grid.

## Declaration

Source position: grids.pas line 1083

`protected function TCustomGrid.FirstGridColumn: Integer; virtual;`

## Function result

Position of the first column after any fixed columns in the grid.

## Description

FirstGridColumn is an Integer function used to get the ordinal position of the first column appearing after any fixed column in the grid control. The return value contains the value in the FixedCols property.

FirstGridColumn is used in the implementation of methods including:

- GetColWidths
- GetIsCellTitle
- ColumnIndexFromGridColumn
- GridColumnFromColumnIndex
- ColumnsChanged

## See also

TCustomGrid.ColWidths |  | Provides indexed access to the Width for a column in the grid.
TCustomGrid.FixedCols |  | The number of fixed columns in the grid.
TCustomGrid.GetIsCellTitle |  | Indicates if the cell at the specified position is a fixed column header.
TCustomGrid.ColumnIndexFromGridColumn |  | Gets the position of the specified column relative to the first column in the grid.
TCustomGrid.GridColumnFromColumnIndex |  | Gets the ordinal position in Columns for the visible column specified in ColumnIndex.
TCustomGrid.ColumnsChanged |  | Performs actions needed when one or more columns in the grid are changed.