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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Cell background when exporting to PDF

Thread ID:





149334 Nov 22,2019 01:06 AM UTC Nov 22,2019 02:44 PM UTC Xamarin.Forms 1
Tags: SfDataGrid
Enterprise Outsourcing
Asked On November 22, 2019 01:06 AM UTC

Hi There,

I would like to find out how to keep a cell background colour when exporting a Datagrid to PDF.

I have tried ApplyGridStyle = true when exporting and the column headers are fine, but my cell background colour does not get exported.

Any input would be greatly appreciated.

Balasubramani Sundaram [Syncfusion]
Replied On November 22, 2019 02:44 PM UTC

Hi Enterprise Outsourcing,  
Thanks for contacting Syncfusion support.     
Based on your provided details we have checked the issue. Enabling the “ApplyGridStyle = true” is enough to export the style of DataGrid to PDF. We have attached the working sample for this case and for more customization on PDF style please refer to the below UG link. 
Please refer the below sample,  
We hope this helps. Please let us know, if you need any further assistance. 
Balasubramani Sundaram.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon