# Styling Group Footers

## Targeting the GridViewGroupFooterRow Element

If you want to style all group footer rows of your application, you should create an appropriate style targeting the **GridViewGroupFooterRow** 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 group footer rows of an application**

```XAML
<Style TargetType="telerik:GridViewGroupFooterRow">
	<Setter Property="Foreground" Value="White"/>
	<Setter Property="Background" Value="LightBlue"/>
</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 **GridViewGroupFooterRowStyle**.

## Setting RadGridView GroupFooterRowStyle

RadGridView's footer rows can also be styled by creating an appropriate **Style** for the **GridViewGroupFooterRow** element and setting it as RadGridView's **GroupFooterRowStyle** property.

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

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

> caption RadGridView with styled group footer rows

![Telerik UI for WPF RadGridView with a custom GroupFooterRowStyle applied to group footer rows](https://www.telerik.com/products/wpf/documentation/assets/57b5e6536bc784b285df1fca5b48f06f/gridview-groupfooterrow-styled.png)

## Setting RadGridView GroupFooterRowStyleSelector

You could also use RadGridView's **GroupFooterRowStyleSelector** property to style group footer rows differently based on a specific condition. More details about how this can be achieved can be found in the [GroupFooterRowStyleSelector article](https://www.telerik.com/products/wpf/documentation/controls/radgridview/style-selectors/group-footer-row-styleselector).

## Targeting the GridViewGroupFooterCell Element

In order to style all **RadGridView** cells of an application, you should create an appropriate style targeting the **GridViewGroupFooterCell** element.

**Example 6: Styling all group footer cells of an application**

```XAML
<Style TargetType="telerik:GridViewGroupFooterCell">
            <Setter Property="BorderBrush" Value="Red"/>
            <Setter Property="Background" Value="Blue"/>
        </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 **GridViewGroupFooterCellStyle**.

## Setting a Column GroupFooterCellStyle

RadGridView's footer cells can also be styled by creating an appropriate **Style** for the **GridViewGroupFooterCell** element and setting it as the **GroupFooterCellStyle** property of the respective **GridViewColumn**.

**Example 7: Setting a column's GroupFooterCellStyle**

```XAML
<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"
                                Header="Name"
                                GroupFooterCellStyle="{StaticResource GridViewFooterCellStyle}" />
```

> caption RadGridView with styled group footer cells

![Telerik UI for WPF RadGridView with a custom GroupFooterCellStyle applied to group footer cells](https://www.telerik.com/products/wpf/documentation/assets/ccbcb04195a7544b05fdd96474a168e7/radgridview_styles_and_templates_styling_gridviewfootercell_03.png)

## Setting a Column's GroupFooterCellStyleSelector

You could also use RadGridView's **GroupFooterCellStyleSelector** property to style group footer rows differently based on a specific condition. More details about how this can be achieved can be found in the [GroupFooterCellStyleSelector article](https://www.telerik.com/products/wpf/documentation/controls/radgridview/style-selectors/groupfootercell-styleselector).

## See Also

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

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

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

* [Styling a Cell](https://www.telerik.com/products/wpf/documentation/controls/radgridview/styles-and-templates/styling-cell)
