Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Store Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems.

Go Back   Vista Forums > Vista technology newsgroups > Avalon

ListView question

Reply
 
Thread Tools Display Modes
Old 05-15-2008   #1 (permalink)
IndyStef
Guest
 
Posts: n/a

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


  Reply With Quote

Old 05-27-2008   #2 (permalink)
Horst Klein
Guest
 
Posts: n/a

RE: ListView question

Hi Stefan

do you have tried to implement the IBindableList Interface?
Horst
  Reply With Quote
 
Reply

Thread Tools
Display Modes









Vistax64.com 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 2005-2008

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