Sometimes, I need to bind the grid and export it in a button click:
WebDataGrid1.StyleSetName="IG"
WebDataGrid1.datasource=ds
WebDataGrid1.databind()
WebExcelExporter.export(WebDataGrid1)
When I do this, the CSS styles are not exported. Is there some method that I need to use to get the CSS to export?
Hello Rob,
"EnableStylesExport" property of the WebExcelExporter needs to be set to true to export the styles. I suggest you to check if this property is set to true or not.
Please let me know if you have any questions regarding this matter.
Dear Rob,
Thank you for contacting Infragistics!
We received your support request concerning WebExcelExporter ignoring styles, and this case has been assigned to me. Infragistics is dedicated to helping you solve this issue.
I am looking into this issue and will get back to you by the end of the day tomorrow with more information or questions for you.