I needed to alternate the css on my table within a repeater, but didn't want to implement the alternatingItemTemplate since the controls would just be duplicated. I found this little snippet
here and modified my ItemTemplate tr tag to look like this:
<tr class="<%# Container.ItemIndex % 2 == 0?"altItem":"rowItem" %>">