Ramani Sandeep's Blog

DotNetting – Fast , Easy Way of Developing Applications

Generate Serial No in Gridview

Posted by ramanisandeep on October 15, 2008

Here is the Code to Generate Serial No in Gridview :

<asp:GridView  runat=”server” id=”gvEmp”>
<Columns>
<asp:TemplateField>
<ItemTemplate>
<%#Container.DataItemIndex+1 %>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>



</asp:GridView>

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>