Add new column in gridview

Naimishforu
Posted by Naimishforu under ASP.NET category on | Points: 40 | Views : 2544
<asp:TemplateField>
<HeaderTemplate>New Column</HeaderTemplate>

<ItemTemplate>

<asp:Label ID="label1" runat="server" Text='<%#Container.DataItemIndex+1 %>'></asp:Label>

</ItemTemplate>

</asp:TemplateField>

Comments or Responses

Login to post response