Skip to content

DevExpress-Examples/wpf-data-grid-change-appearance-of-focused-rows-and-cells

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF Data Grid - Change the Appearance of Focused Rows and Cells

This example demonstrates how to use the View's RowStyle and CellStyle properties to apply custom styles to the focused row and cell. To identify whether the row and cell are focused, the attached IsFocusedRow and IsFocusedCell properties are used.

image

If you want to define a custom border around a focused cell or row, you can enable the ShowFocusedRectangle property and define custom FocusedCellBorderTemplate or FocusedRowBorderTemplate. Note that the focused rectangle is shown for cells or rows only when NavigationStyle is set to Cell or Row, respectively.

Files to look at

Documentation

More Examples