Improving DataGrid performance?

Sep 1, 2009 at 4:05 PM

Hello,

Now several discussions have already pointed out a performance issue:

- Any recommendations for improving DataGrid Performance? (http://wpf.codeplex.com/Thread/View.aspx?ThreadId=66291)

- Important Performance Issue (2nd post) (http://wpf.codeplex.com/Thread/View.aspx?ThreadId=65506)

-Very slow WPF datagrid performance (see last post of http://wpf.codeplex.com/Thread/View.aspx?ThreadId=41964).

I gave up the datagrid 2 weeks ago for the traditional listview but there are so many features missing!

Is there any idea on this performance issue?

Is there a fix expected for the next release?

Any help on this would be greatly appreciated.

 

Thanks,

Kamel

Coordinator
Sep 1, 2009 at 9:54 PM

I've posted replies to some of those, including one of yours.  The problem is refreshing the entire collection is a very expensive operation as it throws away and recreates a lot of objects in the process.  For performance, INotifyPropertyChanged and INotifyCollectionChanged (which ObservableCollection gives you) is the way to go.  Code is posted to your other thread. Thanks!

Sep 2, 2009 at 6:22 AM

Thanks to you for taking the time to teach me this essential implementation!!!

It's working very well!