How to: Change the Appearance of Selected Rows
- 4 minutes to read
This example demonstrates how to use the View's RowStyle property to apply custom styles to focused and selected rows. To identify whether a row is focused and selected, the attached IsFocusedRow and IsSelected properties are used.
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-change-the-appearance-of-a-focused-data-row-and-selected-rows-e2066.
<Application x:Class="DXGrid_ChangeRowAppearance.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" StartupUri="Window1.xaml"> <Application.Resources> </Application.Resources> </Application>