What do I need to do so that the selected row(s) don't change color when the data grid loses focus?
I'm using Xceed DataGrid for WPF v3.7.10418.1216.
Here's an example of the current behavior:
1) Select one or more rows in the data grid. Notice that they are displayed with the selection colors.
2) Take some action that will move the focus from the data grid, for example clicking on the Windows desktop. The selected rows are repainted and are no longer shown in the selection color.
3) Take some action that will move the focus back to the data grid without changing the selection, for example clicking on the grid's group by area. Notice that the selected rows are once again displayed using the selection colors.
What do I need to do so that the selected row(s) don't change color when the data grid loses focus? I would like the selected row to be displayed in using the selection colors even when the grid does not have the focus.
The current behavior is confusing to users, especially when the user right-clicks on a selected row to display the context menu and the selection seems to disappear.
Any help is greatly appreciated.