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.
Syncfusion Feedback

Export a Virtusal grid To Excel

Thread ID:

Created:

Updated:

Platform:

Replies:

62463 Jun 15,2007 10:35 AM UTC Jun 18,2007 06:27 PM UTC Windows Forms 3
loading
Tags: GridControl
e.davidse
Asked On June 15, 2007 10:35 AM UTC

Could somebody tell me how to export a virtual grid to excel?

Regards

Erwin

haneefm [Syncfusion]
Replied On June 15, 2007 04:32 PM UTC

Hi Erwin,

The Excel Export browser ( \Syncfusion\Essential Studio\4.4.0.49\windows\Grid.Windows\Samples\Serialization\ExcelExport_GridControl\ ) sample demonstrates the conversion of contents in a GridControl to an xls file and also the conversion of contents in an xls file to a gridControl. XlsIO libraries are used to support the conversion of grid contents to excel. The dlls that these depend on are Syncfusion.XlsIO.Base and Syncfusion.GridConverter.Windows. Here is a code snippet to show this.

Syncfusion.GridExcelConverter.GridExcelConverterControl gecc = new Syncfusion.GridExcelConverter.GridExcelConverterControl();
gecc.GridToExcel(this.gridControl1.Model, "FileName");

Best Regards,
Haneef

e.davidse
Replied On June 18, 2007 12:19 PM UTC

The problem is that we don't use the Model. We fill the data structure on demand

Regards Erwin

haneefm [Syncfusion]
Replied On June 18, 2007 06:27 PM UTC

Hi Erwin,

Here is a minimal sample that show you "How to export the data from virtual grid to excel?". Please refer to the attached sample for implementation and let me know if this helps.
ModifiedVirtualGrid.zip

Best regards,
Haneef

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.

Warning Icon 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.Close Icon

;