I'm writing an application in VB.net using the Visual Basic Power Packs DataRepeater. I have a loop that runs on the rows with a checkbox checked in them. When I run the loop it checks every 10th row from the ones I've selected. There is no other event linked to the DataRepeater or the controls inside. Just a button at the bottom. The checkbox is not bound to anything. Any reason why the DataRepeater would do this? The checkbox is not bound to a database field.
I read this checkboxstate with the following code:
For i As Integer = 0 To dr.ItemCount - 1
Me.dr.CurrentItemIndex = i
Dim item As DataRepeaterItem = Me.dr.CurrentItem
Dim chk As New CheckBox
chk = item.Controls("chk1")
If chk.CheckState = CheckState.Checked Then