Schmelter's code changes the current line, but this can lead to undesirable effects, as it can update the user interface and lead to other data processing events. No need to change CurrentItemIndex to loop through DataRepeaterItems. Each DataRepeaterItem is just a Control object in the DataRepeater.Controls collection. Here is an alternative (in C #):
using Microsoft.VisualBasic.PowerPacks; foreach ( DataRepeaterItem rowItem in dataRepeater1.Controls ) { int itemIndex = rowItem.ItemIndex;
source share