?
Solved

Selected Index Changed fires twice?

Posted on 2006-11-06
3
Medium Priority
?
314 Views
Last Modified: 2008-03-04
Is it true that Selected Index Changed event ACTUALLY fires twice, once when you leave the row you are on, and once when you "highlight" the new row (the new row receives the focus) ?
0
Comment
Question by:Tom Knowlton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
ZeonFlash earned 2000 total points
ID: 17882426
What control are you referring to?  

I would rather seriously doubt that it does, in any case.  The change event is a single occurrence, much like a light bulb.  When you hit the switch, the bulb CHANGES from Off to On...it doesn't register a state of "in between".  So when, for example, a combobox has a selected index change, it's a single event going from Index A to Index B.  It doesn't go from Index A to Index NULL, then again from Index NULL to Index B.
0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 17894090
What about ListViews?
0
 
LVL 17

Expert Comment

by:ZeonFlash
ID: 17895392
For ListBoxes, the behavior is the same, and is extended by the SelectionMode:

One - SelectedIndexChanged is fire everytime an item is clicked.
MultiSimple - Fired everytime an item is selected OR de-selected.
MultiExtended - Fired everytime an individual item is clicked (selected or de-selected), but when holding the shift key and clicking, the event only fires once (even though multiple items may have been highlighted)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question