vb.netdatarepeater

Moving through datarepeater's items


Is there any way to move through datarepeater's items through code, as we run loop and move through the items in a list / combo box? Thanks Furqan


Solution

  • This should work:

       For i As Integer = 0 To Me.DataRepeater1.ItemCount -1
           Me.DataRepeater1.CurrentItemIndex = i
           Dim item As DataRepeaterItem = Me.DataRepeater1.CurrentItem
       Next