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

How to export Grid in web form to excel

Hi,

I am wondering how to export grid in web form to excel? Is it the same as export grid from window form? Can anyone show me an example?

Thanks,
Rebecca

3 Replies

GB Gokul B Syncfusion Team July 2, 2007 05:58 PM UTC

Hi Rebecca,

Attached is the sample in which the GridGroupingControl content is converted into Excel.

http://websamples.syncfusion.com/samples/Grid.Web/5.1.0.51/F63322/GridGrouping_Forum63322/main.htm

Before Run our sample please make sure that your application is added with following assembly reference.

* Syncfusion.GridConverter.Web
* Syncfusion.XLSIO.Base

Let us know if you need any other help.

Regards,
Gokulkumar B


RM Rekha Mallavarapu July 2, 2007 08:59 PM UTC

Hi,

Is it possible to export the colorcoding of columns in gridgrouping control to excel?

Thanks,

Rekha


VA Valli Syncfusion Team July 3, 2007 05:48 AM UTC

Hi Rekha,

Attached is a sample link which helps you to export the GridGrouping data to excel along with the backcolor applied to the cells.

http://websamples.syncfusion.com/samples/Grid.Web/5.1.0.51/Forum-63322/main.htm

In this sample I have applied 'Red' color to the Cell with the value 'London' in the 'City' column and 'Yellow' color to the cell 'Germany' in the 'Country' column.

When you click the Export button the data of the GridGrouping control gets exported to the Excel along with the background color which has been applied to the cell.

Please let me know if this satisfies your requirement.

Regards,
Valli

Loader.
Live Chat Icon For mobile
Up arrow icon