G
Guest
I have 2 ComboBox in a form. One is in a TabPage of a TabControl
They are data-associated through a code as this
objDA.Fill(objDS
With objComboBo
.ValueMember = strI
.DisplayMember = strValu
.DataSource = objDS.Tables(0
.SelectedValue = 0 : .SelectedIndex = -
End Wit
When the form is shown, the one in the form contains the items but has no one selected while the one in the TabPage of the TabControl has the first item selected... If I force the empty selection setting his SelectedValue=0 or/and SelectedIndex=-1 it goes ok, but when I change the TabPage and then return to it, the first item is shown again !!
Any ideas ??
Thanks in advance..
nq
They are data-associated through a code as this
objDA.Fill(objDS
With objComboBo
.ValueMember = strI
.DisplayMember = strValu
.DataSource = objDS.Tables(0
.SelectedValue = 0 : .SelectedIndex = -
End Wit
When the form is shown, the one in the form contains the items but has no one selected while the one in the TabPage of the TabControl has the first item selected... If I force the empty selection setting his SelectedValue=0 or/and SelectedIndex=-1 it goes ok, but when I change the TabPage and then return to it, the first item is shown again !!
Any ideas ??
Thanks in advance..
nq