We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Exception when using GridExcelExport in masterpage

Thread ID:

Created:

Updated:

Platform:

Replies:

94440 May 13,2010 04:11 AM May 18,2010 08:20 AM ASP.NET Web Forms (Classic) 2
loading
Tags: GridGroupingControl
jeren norman
Asked On May 13, 2010 04:11 AM

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?

jeren norman
Replied On May 13, 2010 05:29 AM

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


Bharath M [Syncfusion]
Replied On May 18, 2010 08:20 AM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;