I can't figure out how to set the "checked" value of certain checkboxes in a checkboxlist during page load. So far I have this, but it doesn't work.
For Each DataRow As DataRow In groupDataset().Tables(0).Rows
Dim i As Integer
For i = 0 To cblGroups.Items.Count - 1
Response.Write(cblGroups.DataValueField)
If DataRow("memberID").ToString = cblGroups.DataValueField Then
cblGroups.Items(i).Selected = True
End If
Next
Next
Is this even possible?
Thanks