I have a simple RadGrid that I need to export to Excel, Word, PDF and CSV. I've tried many ways found online but none have worked for me. here is what I have.
1. Master Page contains Microsoft ScriptManager control.
2. Update Panel contains the Content Page.
3. Grid is setup to export.
4. The columns of the grid are build dinamically like the example before:
When I try to export for any of the formats, the header text is not visible.
Anyone know how to fix this?
1. Master Page contains Microsoft ScriptManager control.
2. Update Panel contains the Content Page.
3. Grid is setup to export.
4. The columns of the grid are build dinamically like the example before:
column =
new
GridBoundColumn();
((GridBoundColumn)column).DataField = col.Name;
((GridBoundColumn)column).HeaderText = col.Title;
((GridBoundColumn)column).HeaderStyle.HorizontalAlign = HorizontalAlign.Center;
grid.MasterTableView.Columns.Add(column);
When I try to export for any of the formats, the header text is not visible.
Anyone know how to fix this?