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

# TCustomStringGrid.Cells

Provides indexed access to a cell value by its column and row number.

## Declaration

Source position: grids.pas line 1821

`public property TCustomStringGrid.Cells[ACol: Integer,ARow: Integer] : string read GetCells write SetCells;`

## Description

Cells is an indexed String property used to read or write the content for a cell in the grid. The ACol and ARow indexes are used the access a value stored at the requested column and row position.

Reading the value causes the pointer to the cell in Celda to return its Text value.

Setting the value causes the pointer to the cell in Celda to be updated for the specified coordinates. An active cell editor will be cancelled if it is not locked, and the value in Modified is reset to False.

Use Objects to read or write an associated TObject instance for a given cell.

## See also

TCustomStringGrid.Modified |  | Indicates whether the content in the grid cells has been changed.
TVirtualGrid.Celda |  | Provides indexed access to cell properties by their column and row numbers.