for each for comboboxes on page

  • Thread starter Thread starter Keith Henderson
  • Start date Start date
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?
 
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.
 
Back
Top