Author: kldeutsch | Posted on: 9/21/2009 8:09:06 AM | Views : 559

 I have values saved to a database from a page but now I need to relaod them when tehy come to edit the page.  The values are part of a checkboxlist that has values 1 to 6 which are saved in teh db.  So I am selecting the values from the db and I get 1, 3, 4, 6 but when I Cycle though myDataRow to populate the checkboxlist alls it populates is the last checkbox.  How do I get it to populate all the checkbox vlaues in teh datarow.  This is the only code I have but only populates the last checkboxlist which has a vlue of 6.
For Each myDataRow In myDataTable.Rows
                cbTagObj.SelectedValue = myDataRow(0)
            Next
 
...

Go to the complete details ...