Dear all,
I'm doing a winform project which uses "ComboBox" in one of the form. The
winform contains "ComboBox" with the values as below: -
this.ComboBox1.Items.AddRange(new object[] {"Apple", "Orange", "StrawBerry"});
Users will select on of the item from the combobox and stored into database.
Users have the rights to update this record.
The question is, how do I select the combobox value base on the value from
database?
I have used "SelectedText", "SelectedValue", but it doesn't seem to be
working.
Please Help. Thanks in advance.
Cheers,
Mae
Stephany Young - 01 Apr 2005 08:08 GMT
SelectedItem
> Dear all,
>
[quoted text clipped - 18 lines]
> Cheers,
> Mae
Mae Lim - 01 Apr 2005 10:55 GMT
SelectedItem doesn't work as well. Do you have another way?
> SelectedItem
>
[quoted text clipped - 20 lines]
> > Cheers,
> > Mae
Dick - 01 Apr 2005 11:59 GMT
SelectedItem *DOES* work...
With ComboBox1
.Items.AddRange(New Object() {"Apple", "Orange", "StrawBerry"})
.SelectedItem = "Apple"
End With
> SelectedItem doesn't work as well. Do you have another way?
>
[quoted text clipped - 22 lines]
> > > Cheers,
> > > Mae