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

exporting Multiple gridviews

0 Answers 56 Views
TileView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sarah
Top achievements
Rank 1
Sarah asked on 04 Apr 2012, 12:08 AM
Hi,
Am exporting four gridviews onto the same excel sheet as follows,
if (dialog.ShowDialog() == true)
                        {
                            using (Stream stream = dialog.OpenFile())
                            {
                                Rgv1.Export(stream, new GridViewExportOptions() { Format = ExportFormat.Html });
                                Rgv2.Export(stream, new GridViewExportOptions() { Format = ExportFormat.Html });
                                Rgv3.Export(stream, new GridViewExportOptions() { Format = ExportFormat.Html });
                                Rgv5.Export(stream, new GridViewExportOptions() { Format = ExportFormat.Html, ShowColumnHeaders = true, Encoding = Encoding.UTF8 });
                            }
                        }
So doing so i am getting the exported gridviews one below the other(vertically) in the excel sheet.I would like to have the first 3 grids horizontally next to each other,and the final one below all the three. Is it possible? If so, Can you kindly help me in doing so?
Tags
TileView
Asked by
Sarah
Top achievements
Rank 1
Share this question
or