G
Guest
Hi, I'm trying to use templated columns to format the header for my datagrid.
Can I use the HeaderTemplate to make the "My Title Goes.." text to span
across the entire datagrid table when it's generated? Or some other method?
Thanks.
<aspataGrid ID="dgList" AutoGenerateColumns=False Runat=server>
<Columns>
<asp:TemplateColumn >
<HeaderTemplate>My Title Goes Here.</HeaderTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "Id") %>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "CompanyName") %>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</aspataGrid>
Can I use the HeaderTemplate to make the "My Title Goes.." text to span
across the entire datagrid table when it's generated? Or some other method?
Thanks.
<aspataGrid ID="dgList" AutoGenerateColumns=False Runat=server>
<Columns>
<asp:TemplateColumn >
<HeaderTemplate>My Title Goes Here.</HeaderTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "Id") %>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "CompanyName") %>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</aspataGrid>