Looping through a repeater
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
Hi all, I'm trying to bind a child repeater within a parent repeater by counting through all the rows of the parent repeater and for every row I would like to bind the child repeater. I need help with the way it works.. this is what I have so far:
Sub BindParent()
'Bind Parent
End SubPublic Sub rpParent_Databound(ByVal sender As Object, ByVal e As RepeaterItemEventArgs)
For Each Item As RepeaterItemCollection In rpParent.Items
'Bind Child
Next
End SubCurrently each Child row has a Parent row. I would like there to be a Parent row with many Child rows, and then the next Parent row would appear. Basically it is not counting correctly. I hope all this makes sense :confused: