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

# TCustomGrid.IsCellSelected

Provides indexed access to the selected state for a cell by its column and row number.

## Declaration

Source position: grids.pas line 1278

`protected property TCustomGrid.IsCellSelected[aCol: Integer,aRow: Integer] : Boolean read GetIsCellSelected;`

## Description

IsCellSelected is an indexed Boolean property which provides access to the selected state for a cell using its column and row number. ACol and ARow contain the column and row number for the cell.

Compares the cell coordinates in ACol and ARow to the current selected range on the grid control. The return value is True if the cell is in the range for the selection on the control.

If RangeSelectMode is set to rsmMulti, all of the existing range selections are examined for the specified cell. The property value is True when the cell is located in the array of rectangles used for multi-selections on the grid control.

Otherwise, the property value is set to False.