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

DataView sorting broken?

Hello,

I''ve been trying to work with the PDFDocument with the following code piece:

ITable table = pdfDoc.CreateTable();
table.DataSource = dg1.DataSource;
table.ConfigureTable(dg1.DataSource as DataView);

For some reason, the sort of my original DataView object is not actually implemented in the PDF Document. Basically, it is added into the PDF document in an unsorted fashion.

Also, is there a way to incorporate the HTML CSS styles from a Datagrid into a PDF export? The current font size and colors cannot be easily copied over...

2 Replies

DK Dhivya K Syncfusion Team August 11, 2006 02:30 PM UTC

Hi Dan,

Thank you for your interest in EssentialPDF.I was able to reproduce the problem. I have created a bug report regarding this and you can track the status of this issue from the following link.

http://www.syncfusion.com/support/issues/pdf/Default.aspx?ToDo=view&questId=2531

However,it is possible to change the fonts and color of the table after assigning the data grid content to ITable.Here is a sample for your reference.

Please take a look into it and let me know if you have any other questions.

Thanks,
Dhivya.K





Loader.
Live Chat Icon For mobile
Up arrow icon