Before SelectedIndexChanged

  • Thread starter Thread starter Tor Inge Rislaa
  • Start date Start date
T

Tor Inge Rislaa

I need an event that occurs just befor an Index is changed in a combobox,
which is that?
My next question is if there is a good solution to find the order of the
events?

T. I. Rislaa
 
Hi TI
That you would not find because the index can change because a lot of
reasons.
- binding a dataset
- changing selectedindex in your program
- selecing items in your program
- filling items not using a dataset
- a user who select something

Maybe you can describe the problem

Cor
 
for your second question i would say use all the events and put a messagebox
w the eventname in it, you would get them in order (yea there are other
places you can display the messages 2 but i like messageboxes becouse they
give you time ;p )

for the first one that could be difficult i think it depends on how you have
configured your combobox (simple dropdown, dropdownlist) or if you are doing
things in code that might change the index.
if someone knows a general beforeindex changed event i'm listening 2.
for now you might want to get the index when the combobox gets focus
(gotFocus event) that might do the trick?

hope i have been of some help.

eric
 
Back
Top