Container.DataItemIndex
would help you.
<columns>
<asp:templatefield headertext="Row Number" itemstyle-width="100" xmlns:asp="#unknown">
<itemtemplate>
<asp:label id="lblRowNumber" text="<%# Container.DataItemIndex + 1 %>" runat="server" />
</itemtemplate>
</asp:templatefield>
<asp:boundfield datafield="Name" headertext="Name" itemstyle-width="150" xmlns:asp="#unknown" />
<asp:boundfield datafield="Country" headertext="Country" itemstyle-width="150" xmlns:asp="#unknown" />
</columns>
Read this article
here[
^]
-KR