Autongenerate Serial Number in grid
Automatically generate serial number at run time no need to bind with data use the below code for showing serial number in grid.
<asp:TemplateField>
<ItemTemplate>
<%# Container.DataItemIndex + 1 %>
</ItemTemplate>
</asp:TemplateField>
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.