StyleGrid REALbasic Plugin |

# StyleGridRow.Cell Method

This function is used to access cell's data.

Cell(
x as integer) as StyleGridCell

#### Parameters

x
  The column number of the cell.

#### Returns

StyleGridCell
  Returns the requested cell or the Grid's default cell if the requested cell did not exist.

#### Remarks

Note: The property is read only, but data can be written in the returned class.
Cell's number are one based, that is the first cell is cell(1).
As StyleGrid uses Einhugur's Floating Engine as data container, the Cell property is not guaranty to return a true cell.
That is if the desired cell is a virtual cell, then the Cell property will return the DefaultCell value of the StyleGrid.
Virtual cells are cells which do not exist in memory and the gaps in-between are filled as default cells.
In most cases, the Cell property should only be used to read data from a cell.
Use the WritableCell property to write into a cell.
The WritableCell property creates a new cell in memory if it does not exist already.

#### See Also

StyleGridRow Class