To add the two Columns in one, in GridView using TemplateField

Posted by Amatya under ASP.NET category on | Points: 40 | Views : 634
Here we are merging two column value in one column which have a header name Country

<asp:TemplateField HeaderText="Country">
<asp:Label ID="Label1" runat="server" Text='<%#Eval("CountryGroup1")+ " " + Eval("CountryGroup2")%>' ></asp:Label>

Thanks Hope it will be useful

Comments or Responses

Login to post response