开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜