SelectedIndexChanged event and the list view control.
From: Robin Tucker (idontwanttobespammedanymore_at_reallyidont.com)
Date: 04/23/04
- Next message: Rich: "Combo box question"
- Previous message: Jamie Sutherland: "Please Help - Encryption Problems"
- Next in thread: EricJ: "Re: SelectedIndexChanged event and the list view control."
- Reply: EricJ: "Re: SelectedIndexChanged event and the list view control."
- Reply: Robin Tucker: "Re: SelectedIndexChanged event and the list view control."
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 23 Apr 2004 14:56:59 +0100
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?
- Next message: Rich: "Combo box question"
- Previous message: Jamie Sutherland: "Please Help - Encryption Problems"
- Next in thread: EricJ: "Re: SelectedIndexChanged event and the list view control."
- Reply: EricJ: "Re: SelectedIndexChanged event and the list view control."
- Reply: Robin Tucker: "Re: SelectedIndexChanged event and the list view control."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|