# Styling Group Row

> important With R3 2012, Telerik introduced **GroupRenderMode="Flat"** which uses the **GroupHeaderRow** element as opposed to the **Nested** group render mode that uses the **GridViewGroupRow**. You should target the correct element in order for your styles to be applied. Please look at this [help article](https://www.telerik.com/products/wpf/documentation/controls/radgridview/grouping/groupingmodes) for details.

## Targeting the GridViewGroupRow Element

In order to style all group rows of **RadGridView** instances with **GroupRenderMode="Nested"** in your application, you should create an appropriate style targeting the **GridViewGroupRow** 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: Targetting GridViewGroupRow**

```XAML
<Style TargetType="{x:Type telerik:GridViewGroupRow}">
    <Setter Property="MinHeight" Value="60" />
</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 **GridViewGroupRowStyle**.

## Targeting the GroupHeaderRow Element

If you have set your **GroupRenderMode** to **Flat**, your style should target the **GroupHeaderRow** element.

**Example 2: Targetting GroupHeaderRow**

```XAML
<Style TargetType="{x:Type telerik:GroupHeaderRow}">
    <Setter Property="MinHeight" Value="60" />
</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 **GroupHeaderRowStyle**.

## Setting RadGridView's GroupRowStyle

The **RadGridView** exposes the **GroupRowStyle** property of type **Style**. It is applied to the **GridViewGroupRow**/**GroupHeaderRow** visual elements inside the **RadGridView**.

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

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

> caption RadGridView with styled group rows

![Telerik UI for WPF RadGridView with custom styles applied to grouped rows](https://www.telerik.com/products/wpf/documentation/assets/96f5d7eb4cc5b8344aaac65e2e19b95b/radgridview_styles_and_templates_styling_gridviewgrouprow_03.png)

> In order to fully style the grouping appearance you have to also modify the styles for [GridViewRow](https://www.telerik.com/products/wpf/documentation/controls/radgridview/styles-and-templates/styling-a-row), [GridViewGroupRow](https://www.telerik.com/products/wpf/documentation/controls/radgridview/styles-and-templates/styling-group-footers) and [indent cells](https://www.telerik.com/products/wpf/documentation/controls/radgridview/styles-and-templates/styling-indent-cells).

## Setting RadGridView's GroupRowStyleSelector

You could also use RadGridView's **GroupRowStyleSelector** property to style group rows differently based on a specific condition. The [following article](https://www.telerik.com/products/wpf/documentation/controls/radgridview/style-selectors/group-row-style-selector) demonstrates how this can be done.

## See Also

* [Styling Group Footers](https://www.telerik.com/products/wpf/documentation/controls/radgridview/styles-and-templates/styling-group-footers)

* [Grouping Modes](https://www.telerik.com/products/wpf/documentation/controls/radgridview/grouping/groupingmodes)

* [Basic Grouping](https://www.telerik.com/products/wpf/documentation/controls/radgridview/grouping/basics)

* [Group Aggregates](https://www.telerik.com/products/wpf/documentation/controls/radgridview/grouping/aggregates)

* [Group Footers](https://www.telerik.com/products/wpf/documentation/controls/radgridview/grouping/group-footers)
