Monday, January 2, 2012

GridView: display serial row number

<asp:TemplateField>
    <ItemTemplate>
        <%# Container.DataItemIndex + 1 %>
    </ItemTemplate>
</asp:TemplateField>

No comments:

Post a Comment