Hi,
I posted early adding Serial Number on datagrid and that was through itemdatabound sometimes it may cause ur pjt to run a bit slow.on client-side Serial Number a nice concept is it...
Here v Go...
<asp:GridView ID="GridView1" runat="server"
AllowPaging="True" AutoGenerateColumns="False">
<Columns>
<asp:TemplateField HeaderText="Serial Number">
<ItemTemplate>
<%# Container.DataItemIndex + 1 %>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Name" HeaderText="Name"/>
</Columns>
</asp:GridView>
I hope this will help u....
Have a nice day... 'N happy Coding :)
No comments:
Post a Comment