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

Cell background when exporting to PDF

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.

1 Reply

BS Balasubramani Sundaram Syncfusion Team 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.

Live Chat Icon For mobile
Up arrow icon