Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - ListView question

 
 
Old 05-15-2008   #1 (permalink)
IndyStef


 
 

ListView question

I want to display a large amount of dynamic data in a ListView. The items
are not from a database, but in a sorted List<Item> collection. They change,
say, every second. I'm dealing with something around 10,000 items.
I have successfully bound my collection to the control through ListView.ItemsSource.
The initial display is fine. When the first update is due, I call ListView.Items.Refresh()
- no errors there. But as soon as I want to scroll, or select an item in
the list, AFTER calling ListView.Items.Refresh, I get an NullReferenceException.
I do not want to implement my collection as ObservableCollection, because
I fear the massive amount of data and the frequent updates will cause performance
problems.
Does anybody have an idea why I am getting exceptions after calling ListView.Items.Refresh()
when the items are in a List<T>, which has been assigned to ListView.ItemsSource?

Thanks,

Stefan



My System SpecsSystem Spec
Old 05-27-2008   #2 (permalink)
Horst Klein


 
 

RE: ListView question

Hi Stefan

do you have tried to implement the IBindableList Interface?
Horst
My System SpecsSystem Spec
 

Thread Tools



Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46