Iterate through static items in a dropdownlist

  • Thread starter Thread starter Do
  • Start date Start date
D

Do

Hi,

How do I read through the items that are statically set in a
dropdownlistbox?
Usually, I have my items in a dataset before I bind to a control, so I can
read the data.

But if they're set with the dropdownlist item tags, how do I read through
them
and their properties?

Do
 
Hi,

you can loop through DropDownList's Items collection.

Dim litem As ListItem
For Each litem in DropDownList1.Items
'Do something
Next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top