How to select a row, if i click a disabled cell in a wpf datagrid
I have a wpf dynamic datagrid with a column disabled. if i click a cell in that column, the row 开发者_如何学编程is not selected.
The following article shows how to detect the row and column of a DataGrid click:
http://www.scottlogic.co.uk/blog/colin/2008/12/wpf-datagrid-detecting-clicked-cell-and-row/
This will work for disabled columns also.
You can adapt this code so that when the row is found, you set its IsSelected property to true.
精彩评论