# Accessing and setting the CurrentCell

In order to set the current cell of **RadGridView**, set the **CurrentRow** and **CurrentColumn** properties to respective row and column which cross at the desired cell:

```C#
this.radGridView1.CurrentRow = this.radGridView1.Rows[1];
this.radGridView1.CurrentColumn = this.radGridView1.Columns[1];
this.Text = this.radGridView1.CurrentCell.Value.ToString();
```

```VB.NET
Me.RadGridView1.CurrentRow = Me.RadGridView1.Rows(1)
Me.RadGridView1.CurrentColumn = Me.RadGridView1.Columns(1)
Me.Text = Me.RadGridView1.CurrentCell.Value.ToString()
```

> caption Figure 1: Changing the current row changes the forms text.

![WinForms RadGridView Changing the current row changes the forms text](https://www.telerik.com/products/winforms/documentation/assets/5bc406a70aece5db68fd540b4a209979/gridview-setting-current-cell001.gif)

## Accessing the current cell

To get an instance of the current cell simply create a variable of type `GridDataCellElement` and assign to it the current cell:

```C#
GridDataCellElement cell = radGridView1.CurrentCell;
```

```VB.NET
Dim cell As GridDataCellElement = Me.RadGridView1.CurrentCell
```

> note The **CurrentCell** property can be *null* when you don't have **CurrentRow** or **CurrentColumn.**

## See Also

* [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)

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

* [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)
