Hi, You can use sql query in this case. If your current sql query is - select name,rollno from students Then modify the query as - select 0 as [Serial No.],name, rollno from students. This modified query will generate a column named Serial No. whoes rows will be filled by 0. Then in the program use a counter to count the rows, in the RowDataBound event handler. Replace the text in column 0 with the counter value. You will get your desired resutls. Hope i am clear enough. I am assuming that you are using SQL Server as database.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder