# Styling Header Row

## Targeting the GridViewHeaderRow Element

In order to style all **RadGridView** header rows of an application, you should create an appropriate style targeting the **GridViewHeaderRow** element.

You have two options:

* To create an empty style and set it up on your own.

* To copy the default style of the control and modify it.

> To modify the default style, see [Editing Control Templates](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-editing-control-templates).

**Example 1: Styling all header rows of an application**

```XAML
<Style TargetType="telerik:GridViewHeaderRow">
    <Setter Property="Background" Value="Red"/>
</Style>
```

> If you're using [Implicit Styles](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-setting-a-theme-overview), you should base your style on the **GridViewHeaderRowStyle**.

## Setting RadGridView's HeaderRowStyle

**RadGridView's header row** can also be styled by creating an appropriate **Style** for the **GridViewHeaderRow**  element and setting it as the **HeaderRowStyle** property.

**Example 2: Setting RadGridView's HeaderRowStyle**

```XAML
<telerik:RadGridView HeaderRowStyle="{StaticResource HeaderRowStyle}" />
```

> caption RadGridView with styled header row

![Telerik UI for WPF RadGridView with a custom HeaderRowStyle applied to the header row](https://www.telerik.com/products/wpf/documentation/assets/21d81effc01996c44d719d71e7323c81/radgridview_styles_and_templates_styling_gridviewheaderrow_03.png)

> As you can see, the changes we made apply only for the row. The header cells remain unchanged. To learn how to style them, take a look at the [Styling Column Headers](https://www.telerik.com/products/wpf/documentation/controls/radgridview/styles-and-templates/styling-column-headers) topic.

## See Also

* [Styling Column Headers](https://www.telerik.com/products/wpf/documentation/controls/radgridview/styles-and-templates/styling-column-headers)
* [Styling a Row](https://www.telerik.com/products/wpf/documentation/controls/radgridview/styles-and-templates/styling-a-row)
* [Styling the Row Details](https://www.telerik.com/products/wpf/documentation/controls/radgridview/styles-and-templates/styling-row-details)
* [Styling the Group Row](https://www.telerik.com/products/wpf/documentation/controls/radgridview/styles-and-templates/styling-group-row)
