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
 
Back
Top