Header Template

J

Jim Heavey

Hello, I am trying to figure out how to use the <HeaderTemplate>. I had
a datagrid working fully. Then I wanted to put a checkbox in one of the
header columns. When I added the <HeaderTemplate> everything starts
highlighting. I am following this example I found on a web site which
show it as follows:

<Columns>
<asp:TemplateColumn>
<HeaderTemplate>
<b>My Header Text</b>
</HeaderTemplate>
<asp:BoundColumn datafield="Company"></asp:boundColumn>
</asp:TemplateColumn>
</Column>

<HeaderTemplate> highlights
<columns> highlights and all of the <style> related items highlight
(SelectedItemStyle, ItemStyle...)

Can you point me in the direction as to what I am doing wrong?

Thanks in advance for your assistance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,269
Messages
2,571,097
Members
48,773
Latest member
Kaybee

Latest Threads

Top