How can I disable selecting in a WPFTooklit\'s DataGrid?
I tried modifying the solution that works for ListView (from WPF ListView turn off selecti
To completely disable selection of rows in a DataGrid, you could do the following:
This could be considered more favorable than setting due to the fact that doing the aforementioned technique causes the style of the row to change. It also does not disable context menus from appearing when right-clicking.
Lastly: it is important to note that setting "IsHitTestVisible" to "False" disables all interaction with the rows, including editing.
However, if all you want to do is change the styling of the row when selected, please view the answers here.