R
Robin Tucker
When volume testing my application I have noticed a big problem with
listview controls populated with large numbers of items (ok, when I say
large, I mean 3 or 4 hundred items, so in the grand scheme of things, quick
small!).
The problem is that I am using a multiple selection list view and if the
user selects item 1 and then Shift-selects to the end of the list, the
selectedindex event is fired around 400 times! This means that any events I
fire or things I do in the handler get executed once for each new selected
item.
What I want to do is detect a selection change in the round, not on an
individual item basis, so I can fire my event just once when a new "multiple
selection" is made.
How can I do this?
listview controls populated with large numbers of items (ok, when I say
large, I mean 3 or 4 hundred items, so in the grand scheme of things, quick
small!).
The problem is that I am using a multiple selection list view and if the
user selects item 1 and then Shift-selects to the end of the list, the
selectedindex event is fired around 400 times! This means that any events I
fire or things I do in the handler get executed once for each new selected
item.
What I want to do is detect a selection change in the round, not on an
individual item basis, so I can fire my event just once when a new "multiple
selection" is made.
How can I do this?