query

  • 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
 
Thank you very much for your prompt reply.
No I have not bind the text property to Datatable. I have Bind the
datasource to dataset and i have also set display member and value
member
regards
raj
 
Hi Cor,

Thank you for your kind reply. I was thinking that it might be a
Microsoft bug and you confirmed it.
Thanks for the links also.

Take care
Bye now
Raj
 
Back
Top