This is a migrated thread and some comments may be shown as answers.

Multi-Column Headers not working after export

1 Answer 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
RICARDO
Top achievements
Rank 1
RICARDO asked on 13 Feb 2013, 06:44 PM
I created the columns and groupcolumn dynamically, but when export the grid, the error below appears:


Invalid column group configuration! Column "Code" cannot be after column "Name"

So I put the IsPostBack event (see below), and the error not appears more, but the group header not appear in file exported.

if (!Page.IsPostBack)
{
 columnGroup = grdDados.MasterTableView.ColumnGroups.FindGroupByName(row["Nome"].ToString());
if (columnGroup == null)
{
 columnGroup = new GridColumnGroup();
 columnGroup.HeaderText = row["Nome"].ToString();
 columnGroup.Name = row["Nome"].ToString();
 grdDados.MasterTableView.ColumnGroups.Add(columnGroup);
}

Help-me!!!!

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 18 Feb 2013, 12:16 PM
Hello Ricardo,

I was not able to reproduce your issue. I prepared a small sample and attached it to this thread. Could you please give it a try and let me know how it differs from your real setup.

Greetings,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
RICARDO
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or