# Styling Row Details

## Targeting the DetailsPresenter Element

In order to style all row details of an application, you should create an appropriate style targeting the **DetailsPresenter** 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 row details of an application**

```XAML
<Style TargetType="telerik:DetailsPresenter">
    <Setter Property="Background" Value="Red"/>
    <Setter Property="HorizontalContentAlignment" Value="Right"/>
</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 **DetailsPresenterStyle**.

## Setting a Column's RowDetailsStyle

**RadGridView** exposes the **RowDetailsStyle** property of type **Style**. It is applied to the details of the **GridViewRow** controls inside the **RadGridView**.

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

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

> caption RadGridView with styled row details

![Telerik UI for WPF RadGridView with a custom RowDetailsStyle applied to row details](https://www.telerik.com/products/wpf/documentation/assets/dd7f5de10e4e3d652263206ada79e6df/radgridview_styles_and_templates_styling_gridviewrowdetails_03.png)

## Setting RadGridView's RowDetailsStyleSelector

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

## See Also

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

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

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