GridView Serial

GridView Serial

Here we will add new coloumn to GridView which will show serial number of the row 


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

 

Tags:

gridview add new rowGridView Serialasp.net Gridview checkboxJquery Gridview Dropdownlist Selected Change Enable Disable ControlsGridView RowGridView EditGridview HyperlinkCheckbox Check all GridviewLinq to SqlGeneric ListSession Loss In Webgarden

Author

My name is Satalaj, but people call me Sat. Here is my homepage: . I live in Pune, PN and work as a Software Engineer. I'm former MVP in ASP.net year 2010.
Disclaimer: Views or opinion expressed here are my personal research and it has nothing to do with my employer. You are free to use the code, ideas/hints in your projects. However, you should not copy and paste my original content to other web sites. Feel free to copy or extend the code.
If you want to fight with me, this website is not for you.
 

I'm Satalaj.