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

# TCustomGrid.FixedRows

Number of the fixed rows in the grid.

## Declaration

Source position: grids.pas line 1255

`protected property TCustomGrid.FixedRows : Integer read FFixedRows write SetFixedRows default 1;`

## Description

Contains the fixed row count for the grid control. A fixed row with fixed columns is normally used to display the headings (titles), images, and sort indicators for the columns in the grid control. The fixed row containing the fixed columns is not scrolled along with the visible area for grid.

Setting a new value for the property causes several actions to be performed for the grid control.

- The values in FixedCols and FixedRows are verified by calling CheckFixedCount, which can raise an exception if an error condition is detected.
- EditorMode is set to False to hide a visible cell Editor for the control.
- MoveNextSelectable is called to find the first selectable cell in the current column. UpdateSelectionRange is called to refresh the cell selected in the grid control.

Use FixedCols to get or set the number of fixed columns displayed for the grid control.

## See also

TCustomGrid.RowCount |  | Number of rows in the grid.
TCustomGrid.ColCount |  | Number of columns in the grid.
TCustomGrid.FixedCols |  | The number of fixed columns in the grid.
TCustomGrid.FixedRows |  | Number of the fixed rows in the grid.
TCustomGrid.EditorMode |  | True when the Editor is ready to modify the value for the current cell.
TCustomGrid.MoveNextSelectable |  | Moves to the next selectable cell in the specified direction.
TCustomGrid.UpdateSelectionRange |  | Updates the selection range when the current selection in the grid has changed.