Here Mudassar Ahmed Khan has explained how to auto generate and display Row Number in ASP.Net GridView control using C# and VB.Net.
The Row Number can be auto generated in the following two ways.
1. Using DataItemIndex.
2. Using RowDataBound event.
↧