On 21 Nov 2006 07:31:23 -0800, KotBegemot wrote:
I have a ListView with multi select
I have 2 events: SelectedIndexChanged and ItemSelectionChanged
If user selects 200 items, these events will be called for 200 times
How can I get only 1 event on this 200 multi selection ?
Thanks!
You can't. The component is not psychic, so it has no idea when the user
has clicked the 'last' item, and therefore could never know when to send
the one-and-only event.
You could ignore the Selection events entirely and just look at the
selected items when you want them, such as on the Leave event.
Cheers,
Gadget