开发者

ControlTemplate checkbox issue

I've开发者_运维知识库 a checkbox controltemplate column in wpf datagrid, when I check few checkboxes and scroll, the selections get messed up.

I know its because the repeating visual component is kind of reused. But how to fix the problem?


Add the following to the datagrid in the XAML:

VirtualizingStackPanel.VirtualizationMode="Standard"

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜