Surendra Sharma

Surendra Sharma

Search This Blog

Wednesday, May 5, 2010

Grid with line numbers

<columns>


       
<asp:templatecolumn
ID="templatecolumn1"
runat="server"
headertext="Row Number">

<itemtemplate>

<span><%# Container.ItemIndex+1 %></span>

</itemtemplate>

</asp:templatecolumn>

</columns>

No comments:

Post a Comment