How to limit selection to maximum two cells in a row of a DataGrid in WPF?
I am currently trying to limit selection of maximum two consecutive cells in a single row of a DataGrid in 开发者_如何学PythonWPF. How can I do that? Any hints? Thanks.
Your best bet is to listen to SelectionChanged and then manipulate the SelectedItems property manually.
加载中,请稍侯......
精彩评论