exporting Multiple gridviews

1 posts, 0 answers
  1. Sarah
    Sarah avatar
    13 posts
    Member since:
    Nov 2011

    Posted 03 Apr 2012 Link to this post

    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?
Back to Top