Found this great article on how to add a counter column to your data rich controls.
The above article is specific to a GridView. Here is an example with a Repeater control.
<asp:Repeater ID="repeater" runat="server">
<ItemTemplate>
<%# Container.ItemIndex + 1 %>
<%# Eval("field_name") %>'>
</ItemTemplate>
</asp:Repeater>
Related Posts
Tags: asp.net, c#, count column, datalist, gridview, repeater





















