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

Export to csv is not in the order I need it to be

1 Answer 111 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 19 Nov 2015, 06:37 PM

lets say that my report has columns name1, name2, name3.  This shows in that order for report preview, export to excel, but when I export it to csv, it's in a different order.

I have read that you need to change the Parent Item Collection order, but for the life of me, I cannot find where to do that.

 Sorry for the newbie question, but our report writer just quit, so I'm now thrust into the world of report writing

 Kevin

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 20 Nov 2015, 01:03 PM
Hello Kevin,

You need to open Designer.cs file in Visual Studio (.trdx file if you are using the Standalone Report Designer) and find the definition for the parent item of the columns. For example, if the parent item is the Detail section the code will look like this:
this.detail.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
            this.textBox1,
            this.textBox2,
            this.textBox3});

You need to change the order in which the report items are added to the parent.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Kevin
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or