I have a simple grid and I'm trying to set the header text on the back end. However, whenever I try to set it, the header just doesn't show up. I'm simply doing this
But there is no column header at all. Any ideas why?
<telerik:RadGrid ID="rptExams" runat="server" AutoGenerateColumns="false" Skin="MetroTouch" AllowSorting="true" OnInit="rptExams_Init" AllowFilteringByColumn="true" OnPreRender="rptExams_PreRender"> <AlternatingItemStyle CssClass="trAlt" /> <MasterTableView> <Columns> <telerik:GridBoundColumn UniqueName="excat_code" SortExpression="excat_code" DataField="excat_code"> </telerik:GridBoundColumn> </Columns> </MasterTableView> </telerik:RadGrid>protected void rptExams_PreRender(object sender, EventArgs e){ GridColumn col = rptExams.Columns[0]; col.HeaderText = "asdfasdf";}//rptExams PreRenderBut there is no column header at all. Any ideas why?
