Auto generate serial no in gridview

Advertisement
In this Article i will tell you How to show auto generate SNo in Grid View,It is very Simple use the Below code in Between your Grid View as shown below

             <asp:TemplateField HeaderText="S No" >
                            <ItemTemplate  >
                                <%# Container.DataItemIndex + 1 %>
                            </ItemTemplate>
                        </asp:TemplateField>

Advertisements
SHARE

Lakshmi Tulasi Jasti

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a comment