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.
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.
- Window1.xaml (VB: Window1.xaml)
- WPF Data Grid - Focus a Cell with the Specified Value
- WPF Data Grid - Change the Appearance of Focused and Selected Rows
- WPF Data Grid - Change the Appearance of Focused and Selected Cells
(you will be redirected to DevExpress.com to submit your response)