In DataGrid, the serial number is added to each line, and 1, 2, 3 is displayed from the first row ...
You can add a template column in the DataGrid, then add the following code:
<% # (Container.ItemIndex 1) DataGrid1.currentpageIndex * DataGrid1.pageSize%> itemTemplate> asp: templateColumn>
Also, if your DataGrid has no paging, this is ok:
<% # Container.Index 1%> itemtemplate> ask: templateColumn>