# Styling Invalid Row in RadGridView

> Before reading this topic, you might find it useful to get familiar with RadGridView’s [validation](https://www.telerik.com/products/wpf/documentation/controls/radgridview/features/managing-data-validation) functionality.

**RadGridView's** styles are located in **Themes.Implicit{your theme}\Themes\Telerik.Windows.Controls.GridView\.xaml** file.

To edit the default invalid row style, you can extract the **ControlTemplate** of the **GridViewRow**. You can check the [Edit the ControlTemplates](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-editing-control-templates) help article which describes how you can get the default template of the controls. In the extracted template, you can navigate to the **Border** element with x:Name="Background_Invalid" and modify its properties as desired.

> tip In case you use different themes and the user can change them at runtime, you will have to extract and modify the default template of the GridViewRow for each theme that you are using.

> caption The default invalid row

![Telerik WPF DataGrid Invalid-Row-](https://www.telerik.com/products/wpf/documentation/assets/4b8213de8566ae7469fdfcf927a85cee/styling-invalid-row.png)

> To learn how to customize any Telerik theme, see the [Setting a Theme (Using Implicit Styles)](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-setting-a-theme-overview) article.

**Example 1: Invalid row in the Office_Black theme**

```XAML
 <ControlTemplate x:Key="GridViewRowTemplate" TargetType="grid:GridViewRow">
   . . .
    <Border x:Name="Background_Invalid"
                       Margin="1 1 1 2"
                       BorderThickness="1"
                       CornerRadius="1"
                       BorderBrush="{StaticResource ItemOuterBorder_Invalid}"
                       Grid.Column="2"
                       Grid.ColumnSpan="2"
                       Visibility="Collapsed"
                       grid:SelectiveScrollingGrid.SelectiveScrollingClip="True">
	<Border BorderThickness="1" BorderBrush="{StaticResource ItemInnerBorder_Invalid}" Background="{StaticResource ItemBackground_Invalid}"/>
</Border>
   . . .
</ControlTemplate>
```

## See Also

* [Validation](https://www.telerik.com/products/wpf/documentation/controls/radgridview/features/managing-data-validation)
