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.

export to excel issues

Thread ID:

Created:

Updated:

Platform:

Replies:

100460 Aug 8,2011 07:04 PM Aug 12,2011 02:59 AM Windows Forms 1
loading
Tags: Grouping
rayzhahng
Asked On August 8, 2011 07:04 PM

I have two questions regarding export gridgroupcontrol to excel,
1, in the export excel, it has a filter row with values 'FilterBar, GridFilterBarRow', how can I remove this?

2, When export a control with nested tables, it has message 'Child tables (# Items)', anyway I can remove this also?

Thanks


Ragamathulla B [Syncfusion]
Replied On August 12, 2011 02:59 AM

Hi Rayzhahng,

Thank you for your interest in syncfusion products.

You can achieve your desired using ExportElement event. The following code explain the same.

converter.ExportElement += new GroupingGridExcelConverterControlExt.GridExportElementEventHandler(
converter_ExportElement);
void converter_ExportElement(object sender, GridExportElementEventArgs e)
{
if (e.Element.Kind == DisplayElementKind.Empty)
e.Cancel = true;
if (e.Element.Kind == DisplayElementKind.FilterBar)
e.Cancel = true;
if (e.Element.Kind == DisplayElementKind.Caption)
e.Cancel = true;
}

Please refer the following sample which illustrate the same.

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=GCCExportElements671560092.zip

Let me know if you have any concern.

Regards,
Ragamathullah B.


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.

;