Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with ComboBox

Status
Not open for further replies.

hanglam

Programmer
Dec 11, 2002
143
US
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.ValueMamber = "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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top