Query abt Combo box

  • Thread starter Thread starter Raj
  • Start date Start date
R

Raj

My name is Raj. I am working on C#. I am facing a problem in Combo box
SelectedIndex property...

The problem is...
On a form I have a tab control of 2 tab pages. On the 1st tab page I have a
combo box populated from database and selectedindex is set to -1. When the
form is loaded the combo box is populated on the 1st tab page. At this point
of time if I go to 2nd tab page and come back combo box is set to -1 as it
was when the form was loaded. but if I choose value from the combo box not
1st one, 2nd or 3rd one and going to 2nd tab page and when I am coming back
it is fine but is at the time of coming back I set the selectedindex
property to -1 again it is never becoming -1 it is always going to 0 for no
reason.
I am stuck with this problem.
Can any one please help me.
my email address is (e-mail address removed)
thanks & regards
Raj
 
Back
Top