# GridViewCellInfo

**GridViewCellInfo** class is the logical representation of a single grid cell. **GridViewCellInfo** properties include:

* **Value:** The value displayed in the cell.

* **ColumnInfo:** The [GridViewDataColumn](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/columns/gridviewcolumn) that the cell appears in.

* **RowInfo:** The [GridViewRowInfo](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/rows/gridviewrowinfo) that the cell appears in.

> note  **RadGridView** uses virtualization for its visual elements. This means that only the rows that are currently visible have a visual element. When the grid is scrolled up and down the visual elements are reused. Because of the virtualization, it is safe to use the **CellElement** only inside the **CellFormatting** event and only for the current cell. The **CellFormatting** event is fired every time when the cell's visual state needs to be updated.

**GridViewCellInfo** also includes an **EnsureVisible()** method that scrolls the cell into view.

#### Using GridViewCellInfo

```C#
GridViewRowInfo lastRow = radGridView1.Rows[radGridView1.Rows.Count - 1];
		    GridViewCellInfo cell = lastRow.Cells["BMP"];
lastRow.EnsureVisible();
if (cell.ColumnInfo.GetType() == typeof(GridViewCheckBoxColumn))
{
    cell.Value = false;
}
cell.EnsureVisible();
```

```VB.NET
Dim lastRow As GridViewRowInfo = RadGridView1.Rows(RadGridView1.Rows.Count - 1)
Dim cell As GridViewCellInfo = lastRow.Cells("BMP")
lastRow.EnsureVisible()
If cell.ColumnInfo.GetType().Equals(GetType(GridViewCheckBoxColumn)) Then
    cell.Value = False
End If
cell.EnsureVisible()
```

## See Also

* [Accessing and Setting the CurrentCell](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/cells/accessing-and-setting-the-currentcell)

* [Accessing Cells](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/cells/accessing-cells)

* [Conditional Formatting Cells](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/cells/conditional-formatting-cells)

* [Creating Custom Cells](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/cells/creating-custom-cells)

* [Formatting Cells](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/cells/formatting-cells)

* [Iterating Cells](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/cells/iterating-cells)

* [Painting and Drawing in Cells](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/cells/painting-and-drawing-in-cells)

* [ToolTips](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/cells/tooltips)
