Exception when using GridExcelExport in masterpage

Hello guys,

I have an exception ArgumentOutOfRangeException when I export the gridgoupingcontrol which's involved in a masterpage (content --> ContentPlaceHolder) by GridExcelExport.

//--- That's the code for exporting..

GridExcelExport excel = new GridExcelExport(this.GridGroupingControl1,"abc.xls");

excel.ExportNestedTable = true;
excel.Export();

//-------------
It's alright if I export in a simple asp.net page.

Have any idea?

2 Replies

JN jeren norman May 13, 2010 09:29 AM UTC

there're some comments.. cause the exception

1. the contentPlaceHolder is involved in UpdatePanel
2. the grid have control embedded
3. the grid have no any record



BM Bharath M Syncfusion Team May 18, 2010 12:20 PM UTC

Hi Jeren,

Thanks for update.

We suggest you to add a condition that "GridGroupingControl1.DataSource != null" before calling "excel.Export()" function.

Let me know if you have any concerns.

Regards,
Bharath

Loader.
Up arrow icon