G
Guest
Hi,
Is there any way to access the values (not display names)of a combobox ?
For example:
combo1.DataSource = dataset1.tables(0)
combo1.DisplayMember = "Name"
combo1.ValueMember = "ID"
I want to iterate thru the values of the combobox inside my code , but
somehow there is not property for values, i.e. "combo1.Items(1).value "
In ASP.NET, the combobox does have that property but in VB.NET, the combobox
lacks that property.
Does anybody know of any way to iterate thru values in a combobox ?
Thanks,
Hang
Is there any way to access the values (not display names)of a combobox ?
For example:
combo1.DataSource = dataset1.tables(0)
combo1.DisplayMember = "Name"
combo1.ValueMember = "ID"
I want to iterate thru the values of the combobox inside my code , but
somehow there is not property for values, i.e. "combo1.Items(1).value "
In ASP.NET, the combobox does have that property but in VB.NET, the combobox
lacks that property.
Does anybody know of any way to iterate thru values in a combobox ?
Thanks,
Hang