By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,877 Members | 1,115 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,877 IT Pros & Developers. It's quick & easy.

C# ListView large multi selection

P: n/a

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!

Nov 21 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Nov 22 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.