

See in ItemTemplate, I have add a single line of code to auto generate serial number. No Need to change name of the Pageģ.Add a GridView control in Web Form and write code below in GridView. Although it is not difficult in code behind file but it is very easy to be achieved in ItemTemplate with a single line of code.ġ.Create a new Empty Web Site in Visual Studio 2010 either in Visual Basic or Visual C#.Ģ.Add a Web Form in the Web Site. You can do it in the ItemTemplate of GridView control or you can do in code behind file.

This can be very easily achieved by different ways. 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.
