Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
250
export grid to excel with multiple sheets.
posted

Hello Everyone,

Can anyone tell me how to export the grid to excel which will show in multiple sheets. Like for eg. If I have 1000 rows in my grid i want to show 50 rows in sheet1 and anthr 50 in sheet 2 and so on.

I am new to Infragistics and my project manager wants the above feature. Please suggest me some soln.

I had written the following code:

protected void btnExporttoExcel_Click(object sender, ImageClickEventArgs e)
    {      
        // trigger export      
        UltraWebGridExcelExporter1.DownloadName = "abc.xls";
        UltraWebGridExcelExporter1.Export(ultrawebgrid1);       
  }

and I had handled this event.

protected void UltraWebGridExcelExporter1_BeginExport(object sender, Infragistics.WebUI.UltraWebGrid.ExcelExport.BeginExportEventArgs e)
    {

   }

 

regards,

Sumeet Shinde.

Parents
No Data
Reply
  • 24671
    posted

    Hi,

    For such a complex scenario - dividing rows from a single grid into more than 1 worksheets, i suggest that you directly manipulate the workbook and worksheets using our Excel library API , and by handling the RowExporting and RowExported, CellExporting and CellExported server-side events.

    If you need further assistance on the topic, you can contact Development Support for a step-by-step resolution of your case.

    Thank you,

    Angel

Children
No Data