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

csv export

3 Answers 94 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Deepak
Top achievements
Rank 1
Deepak asked on 03 Mar 2011, 03:03 PM
Hi,
 2 questions...

1. Is there a way of keeping the column visible but not appearing in the export?
2. How and what do innerelements do?


Thanks
Deepak

3 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 03 Mar 2011, 06:08 PM
Hi Deepak,

In order to keep the column visible in RadGridView, but not export it, you would have to set visibility to false before the export and true after export
this.radGridView1.Columns[0].IsVisible = false;
exporter.RunExport(@"C:\Users\TheUser\Documents\MyCSV.csv");
this.radGridView1.Columns[0].IsVisible = true;

The inner elements give a reference to the value which can be used when CSVCellFormatting event
Hope that helps
Richard
0
Deepak
Top achievements
Rank 1
answered on 04 Mar 2011, 11:41 AM
Thanks Richard... That and suspend and resumelayout works fine for me


Thanks
Deepak
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 04 Mar 2011, 11:43 AM
Glad I could help. Please remember to mark as answer
Regards,
Richard
Tags
GridView
Asked by
Deepak
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Deepak
Top achievements
Rank 1
Share this question
or