mark zhou - 2011-12-23

i want to display the serial number in grid and it should be generated automatically. how to do this?  to explain it clearly, i 'd like to add some similar info found in web.

"-----add this code as first column in ur grid

<asp:TemplateColumn HeaderText="Sno">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<ItemTemplate>
<%#i=i+1%>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox runat="server" ID="Textbox1" NAME="Textbox1"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
-------------"

thanks and regards