Serial number column in gridview
Sometimes you might need to display a column of serial number for GridView rows and you want it to be auto increment as number of rows increases. This can be very easily achieved by different ways. You can do it in the ItemTemplate of GridView control or you can do in code behind file.Hi, Thanks for the reply. In my gridview i have already two button columns. After that i have to add Serial number. So the code which you provide is not working. Then i try below code and it works. serial number column in gridview
In this article I will explain how to add and show Serial number in First Column of GridView in ASP. Net using C# and VB. Net. The Serial Number can be auto generated in the following two ways. 1.