# SelectedBackground and MouseOverBackground

The **GridViewRow** element exposes properties which allow you to change the default brush used for its selected and mouseover states. Those are **SelectedBackground** and **MouseOverBackground**.

## SelectedBackground

RadGridView has a default Brush for its selection on row level depending on the given theme. For example, the visual appearance of the selected row in the Office2016 theme would be as shown below.

> caption Selected row background in Office2016 theme

![Telerik UI for WPF RadGridView showing the default selected row background in the Office2016 theme](https://www.telerik.com/products/wpf/documentation/assets/197b21c2b77b8c79bf14ffd34e88e15b/radgridview_selectedrow_background_01.png)

As of **R3 2018 RadGridView** provides support for setting the background of its selected rows through the **SelectedBackground** property of **GridViewRow**.

**Example 1: Setting the SelectedBackground property of GridViewRow**

```XAML
<Style TargetType="telerik:GridViewRow">
          <Setter Property="SelectedBackground" Value="Bisque"/>
      </Style>
```

> caption RadGridView with modified background for its selected row

![Telerik UI for WPF RadGridView with a custom SelectedBackground applied to the selected row](https://www.telerik.com/products/wpf/documentation/assets/2dee4ca870ad6b98a65e529225b5bdd9/radgridview_selectedrow_background_02.png)

> If you have [alternating rows](https://www.telerik.com/products/wpf/documentation/controls/radgridview/rows/alternating-rows) and you have explicitly set a style which sets the SelectedBackground of the rows to the **RowStyle** property of the RadGridView, you will have to set the [AlternateRowStyle](https://www.telerik.com/products/wpf/documentation/controls/radgridview/styles-and-templates/styling-a-row) property to the same style (or a style that sets the **SelectedBackground** property to the same value).



> tip In case the [SelectionUnit](https://www.telerik.com/products/wpf/documentation/controls/radgridview/selection/basics#selection-units) of the RadGridView is **Cell** or **Mixed**, you can set the [SelectedBackground](https://www.telerik.com/products/wpf/documentation/controls/radgridview/styles-and-templates/styling-cell#setting-the-selectedbackground-of-the-cell) property of the **GridViewCell**.

## MouseOverBackground

As of **R1 2019 SP1**, you are able to change the brush used for the mouseover state of the GridViewRow by setting its **MouseOverBackground** property as demonstrated in **Example 2**.

**Example 2: Setting the MouseOverBackground property of GridViewRow**

```XAML
<Style TargetType="telerik:GridViewRow" >
       <Setter Property="MouseOverBackground" Value="Pink" />
   </Style>
```

> caption RadGridView with modified MouseOver background

![Telerik UI for WPF RadGridView with a custom MouseOverBackground applied to hovered rows](https://www.telerik.com/products/wpf/documentation/assets/ada71f355c659965b36d5318284df0a9/radgridview_mouseoverbackground.png)

> The notes in the previous section about the **SelectedBackground** property apply to the **MouseOverBackground** as well.

## See Also

* [Grid Rows - Overview](https://www.telerik.com/products/wpf/documentation/controls/radgridview/rows/overview)
* [Customizing Rows](https://www.telerik.com/products/wpf/documentation/controls/radgridview/rows/customizing-rows)
* [Alternating Rows](https://www.telerik.com/products/wpf/documentation/controls/radgridview/rows/alternating-rows)
