Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF ToolKit DataGrid Performance

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

like image 681
Thanh Tran Avatar asked Jul 01 '09 13:07

Thanh Tran


1 Answers

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

like image 197
Tri Q Tran Avatar answered Oct 09 '22 05:10

Tri Q Tran