|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Listview ItemSelectionChanged vs SelectedIndexChanged eventsThe listview events "ItemSelectionChanged" and "SelectedIndexChanged" events
appear to both fire when someone clicks on a different item in a listview. Is there some reason to use one event over another? Thanks, Dean S There's no reason to use either event that's dictated by the control, no.
Which you use depends on the requirements of your own code. ItemSelectionChanged will return the instance of the item who's selection has changed, where as SelectedIndexChanged will just notify you that a selection change was made. It won't tell you which item changed. -- <i><b>RageInTheMachine9532</b></i><font size="-2"> "<i>...a pungent, ghastly, stinky piece of cheese!</i>" <b>-- The Roaming Gnome</b></font>Show quoteHide quote "Dean Slindee" wrote: > The listview events "ItemSelectionChanged" and "SelectedIndexChanged" events > appear to both fire when someone clicks on a different item in a listview. > Is there some reason to use one event over another? > > > > Thanks, > > Dean S > > >
FOR ALL - Best Practices for navigating within code? -plus - Add-In's that help?
Concurrency violation at update A Service in VB.NET 2005 using a form ? Where can we buy VB.net? How Microsoft does it? do event Sending email from Windows application Not working. crystal report question how to get parent control of the context menu stip Progress bar to run with the datachecking |
|||||||||||||||||||||||