G
Guest
My grid has a template field, and for me to export it to excel and hide the
columns in excel i had to add headers to my template fields. I have header
text and I have showHeader =false but the header text is still showing on the
web form.
I don't want that, so how can I hide the header text in my gridview on my
web form? Is there another way to accomplish this and now show the headers in
the grid and also to hide that column when i export it to excel?
<asp:TemplateField HeaderText="Sales" ShowHeader="False">
<ItemTemplate>
<a class="link"
href="saledetails.aspx?id=<%# Eval("Id") %>&salesmen=<%#
Eval("lastName")%>&date=<%# Eval("salesdate") %>">details</a>
</ItemTemplate>
</asp:TemplateField>
columns in excel i had to add headers to my template fields. I have header
text and I have showHeader =false but the header text is still showing on the
web form.
I don't want that, so how can I hide the header text in my gridview on my
web form? Is there another way to accomplish this and now show the headers in
the grid and also to hide that column when i export it to excel?
<asp:TemplateField HeaderText="Sales" ShowHeader="False">
<ItemTemplate>
<a class="link"
href="saledetails.aspx?id=<%# Eval("Id") %>&salesmen=<%#
Eval("lastName")%>&date=<%# Eval("salesdate") %>">details</a>
</ItemTemplate>
</asp:TemplateField>