# Selected rows and Current row

## IsSelected

The property **IsSelected** determines whether a row is selected. For example, to select a row programmatically use the following code snippet:

```C#
rowToSelect.IsSelected = true;
```

```VB.NET
rowToSelect.IsSelected = True
```

All currently selected rows are included in the **SelectedRows** collection. If you clear this collection and send an update message to **RadGridView**, this will essentially unselect all rows:

```C#
radGridView1.ClearSelection();
```

```VB.NET
Me.RadGridView1.ClearSelection()
```

## IsCurrent

The **IsCurrent** property determines which row is the current one. There can be only one current row or no current row if the **IsCurrent** property is set to *null*.

Most themes visualize the current and the selected rows with the same style although technically **IsCurrent** and **IsSelected** are independent of one another. The **IsCurrent** functionality is related to the keyboard support.

Use the following code snippet to remove the current row:

```C#
this.radGridView1.CurrentRow = null;
```

```VB.NET
Me.RadGridView1.CurrentRow = Nothing
```

## See Also

* [Adding and Inserting Rows](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/rows/adding-and-inserting-rows)

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

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

* [Drag and Drop](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/rows/drag-and-drop)

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

* [GridViewRowInfo](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/rows/gridviewrowinfo)

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

* [New Row](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/rows/new-row)
