for each for comboboxes on page

K

Keith Henderson

I have a datatable that needs to be the datasource for 10 comboboxes. how
do I do a for each for page_load to do this?
 
S

Scott Allen

Hi Keith:

You'll have to set the DataSource for each box explicitly.
About the closest you can get to looping would be to create an array
of comboboxes yourself, or loop through the Controls collection, check
if the control is a combo box, and then bind it.
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top