K Keith Henderson Sep 24, 2004 #1 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?
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 Sep 24, 2004 #2 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.
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.