With the ASP.NET listview control, you can set an AlternatingItemTemplate in order to change the display or what you want.
If you just want to change the backcolor or things like that, you can spare some time by using only the ItemTemplate and applying a diffenrent style depending of the index (use of the Container.DataItemIndex property).
example : let’s say that your listview generate a <table> and each ItemTemplate generate a row of this table, just do :
<ItemTemplate> <tr class='<%# Container.DataItemIndex % 2 == 0 ? “normalâ€Â : “alternating†%>'> <td>blah blah</td> </tr> </ItemTemplate>
that’s all you need !