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. Image for the cookie policy date
close icon

Export a Virtusal grid To Excel

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

Regards

Erwin

3 Replies

HA haneefm Syncfusion Team 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. e.davidse 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


HA haneefm Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon