C
Chris Newald
Hello,
I have a simple gridview with one column on a web page. I need to be able to
set the column titles ("Header Title" below) programatically. How would I
do this easily in C#? I tried inserting an ASP Label but I cannot get the
FindControl to work for the Header Template.
<aspataGrid ID="alertGrid" runat="server" AutoGenerateColumns="false">
<Columns>
<asp:TemplateColumn>
<HeaderTemplate>
<b>Header Title</b>
</HeaderTemplate>
</asp:TemplateColumn>
</Columns>
</aspataGrid>
Thanks in advance,
Chris
I have a simple gridview with one column on a web page. I need to be able to
set the column titles ("Header Title" below) programatically. How would I
do this easily in C#? I tried inserting an ASP Label but I cannot get the
FindControl to work for the Header Template.
<aspataGrid ID="alertGrid" runat="server" AutoGenerateColumns="false">
<Columns>
<asp:TemplateColumn>
<HeaderTemplate>
<b>Header Title</b>
</HeaderTemplate>
</asp:TemplateColumn>
</Columns>
</aspataGrid>
Thanks in advance,
Chris