I\'m stuck with one very stupid problem - need to style selected row in WPF DataGrid.
I want to show a rectangle with blue border instead of just filling entire row
Use CellStyle and RowStyle on DataGrid. DataGridCell and DataGridRow both have IsSelected property that can be used in a Trigger to find out if they are selected.
CellStyle
RowStyle
DataGrid
DataGridCell
DataGridRow
IsSelected
Trigger
Something like following should do the trick:
Just play around until you get it right.