开发者

How to select a row, if i click a disabled cell in a wpf datagrid

开发者 https://www.devze.com 2023-03-08 00:50 出处:网络
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 DataG

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

精彩评论

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