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

Multiple GridViews to Worksheets in 1 Workbook

3 Answers 94 Views
GridView
This is a migrated thread and some comments may be shown as answers.
AdaDog
Top achievements
Rank 1
AdaDog asked on 02 Nov 2011, 05:48 PM
How do I export multiple GridViews to multiple worksheets in a single Excel workbook?

3 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 07 Nov 2011, 04:54 PM

Hi Doug Simpson,

In order to achieve this you will have to utilize the ExcelML format, as it is the only one that support seperate worksheets. You may try exporting the second RadGridView in a MemoryStream and then insert the output in the filestream. However, you will have to put it in a seperate <Worksheet> tag. Please, do not hesitate to ask us for a code example, in case you have encountered any obstacles, while implementing this.

Regards,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
AdaDog
Top achievements
Rank 1
answered on 07 Nov 2011, 07:55 PM
Yes. Please provide a code sample.  I'm not sure how best "to put [a second RabGridView's output] into a separate <Worksheet> tag.
0
Accepted
Vlad
Telerik team
answered on 08 Nov 2011, 07:44 AM
Hi,

 You can find an example attached. 

Best wishes,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
AdaDog
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
AdaDog
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or