Iterate through static items in a dropdownlist

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
 
T

Teemu Keiski

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

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top