![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| 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 |
|
|
| |
| |
| |