WPF ToolKit DataGrid性能 [英] WPF ToolKit DataGrid Performance

查看:170
本文介绍了WPF ToolKit DataGrid性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个6列DataGrid,每列是一个RadioButton,以便用户可以选择1 6选项。大约有100行。我使用6个bool数据元素创建一个自定义类,然后使用约100个自定义类对象的列表绑定datagrid。有两个问题:


  1. 绑定时间非常慢

  2. 当我滚动数据网格某些行的检查值有时会消失。

在绑定到大量数据时,是否有任何已知的问题与datagrid ?以及如何提高性能。我正在使用WPF工具包的6月版本



谢谢



P / S:您可以下载我的样品应用程式才能明确了解问题
http://www.mediafire.com/ file / jrmft4m4jwm / WpfApplication3.zip

解决方案

您是否正在使用VirtualizingStackPanel?这将提高大屏幕上大量数据收集的性能。


I got a DataGrid with 6 column, each column is a RadioButton so that user can select 1 in 6 option. There are about 100 row. I make a custom class with 6 bool datamember, then bind the datagrid with a list of about 100 custom class object. There are 2 problem:

  1. The binding time is very slow
  2. When I scroll the data grid, sometime the check value of some row disappear.

Are there any known issues with datagrid when bind to a large amount of data like this? And how to improve the performance. I'm using the June Release of WPF Toolkit

Thanks

P/S: You can download my sample app to understand exactly the problem http://www.mediafire.com/file/jrmft4m4jwm/WpfApplication3.zip

解决方案

Have you looked into using a VirtualizingStackPanel? This will improve performance for large collection of data for rendering on screen.

这篇关于WPF ToolKit DataGrid性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆