First you need to understand what a
HeaderTemplate
is. Check below link-
Quote:
Use the HeaderTemplate property to specify the custom content displayed for the header section of a TemplateField object. Define the content by creating a template that specifies how the header section is rendered.
TemplateField.HeaderTemplate Property (System.Web.UI.WebControls)[
^]
You have also defined
HeaderText
in the template field-
HeaderText="E_Name ●"
It's not possible to show the content of
HeaderTemplate
and
HeaderText
at the same time.
So, what you can do is, change the
HeaderTemplate
accordingly to accomodate the
HeaderText
. Something like-
<headertemplate>
<table>
<tr><td>E_Name ●</td></tr>
Hope, it helps :)