Try with this it may work for U
Dim row As DataGridViewRow
For Each row In DataGridViewRowFileDetails.Rows
row.Cells("RowName").Value = row.Cells("RowName").RowIndex + 1
Next
Where RowName is the Name of the Row where you need the serial number in the Grid View
It should be use where U fill the Grid View