# Alternating Rows

**RadGridView** allows you to have alternating rows should you need to improve readability.

In order to define the pattern of alternation, you have to set the **AlternationCount** property. For example, if you want to alternate each second row, you have to set its value to **2**. Setting the **AlternationCount** property to **3** shows an alternating color for each third row.

**Example 1: Setting the AlternationCount Property**

```XAML
<telerik:RadGridView AlternationCount="2" />
```

![Telerik UI for WPF RadGridView with AlternationCount set to display alternating row styling every second row](https://www.telerik.com/products/wpf/documentation/assets/eaa48940132bcd47309b5b023d4c2de0/radgridview_rows_alternating_rows_02.png)

In order to style the alternating rows, you can specify the **AlternateRowStyle** and/or the **AlternateRowBackground** properties. If you do not specify an AlternateRowBackground a default color will be picked, based on the current theme.

> tip To learn more about styling the rows and the alternating rows you can read [the following article](https://www.telerik.com/products/wpf/documentation/controls/radgridview/styles-and-templates/styling-a-row).

**Example 2** shows **RadGridView** with **AlternationCount** set to **2** and **AlternateRowBackground** color set to **Coral**.

**Example 2: Setting the AlternateRowBackground Property**

```XAML
<telerik:RadGridView AlternationCount="2"
                   AlternateRowBackground="Coral" />
```

![Telerik UI for WPF RadGridView with AlternateRowBackground set to Coral for alternating rows](https://www.telerik.com/products/wpf/documentation/assets/738d22f9864122aac52ab1f77a7b0645/radgridview_rows_alternating_rows_01.png)

## 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)
* [Selected Row Background](https://www.telerik.com/products/wpf/documentation/controls/radgridview/rows/selected-row-background)
