鼠标滚动检查并取消选中数据网格WPF中的复选框 [英] Mouse Scroll check and uncheck checkboxes in a Data grid WPF
本文介绍了鼠标滚动检查并取消选中数据网格WPF中的复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在wpf数据网格中绑定了一个复选框,问题是当我上下滚动网格时会自动进行选择,有时会取消选择以前的选项
什么不太清楚?????
每行数据网格都有一个复选框,当我们向下或向上滚动鼠标时选中并取消选中那个问题的复选框......
我需要一些解决这个问题的方法????????
I've bound a check box in a wpf datagrid and the problem is that when I scroll the grid up and down it automatically make selections and some times deselect previous selections
What is not so clear ?????
there is a check box in each row of data grid and when we scroll the mouse down or up it check and uncheck the checkbox that's the problem that's it......
I need some solution to this problem????????
推荐答案
太好了,更好地描述你的问题以便更好地回复
well afzal , describe your problem more for better reply
在网格中设置VirtualizingStackPanel.IsVirtualizing =False
set VirtualizingStackPanel.IsVirtualizing="False" in Grid
< br>
UpdateSourceTrigger = Binding中的PropertyChanged
UpdateSourceTrigger=PropertyChanged in Binding
这篇关于鼠标滚动检查并取消选中数据网格WPF中的复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文