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

Difference between PdfLightTable and PdfGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

100097 Jul 4,2011 05:32 PM UTC Jul 11,2011 03:33 AM UTC ASP.NET Web Forms (Classic) 5
loading
Tags: PDF
Thomas Jechalik
Asked On July 4, 2011 05:32 PM UTC

I want to create a PDF file which contains a table. From the documentation I've seen that there are two classes: "PdfLightTable" and "PdfGrid". The API for these classes is very similar at a first glance.

Which of these two classes is (more) recommended to use? What are the benefits/drawbacks of one or the other. I've seen that the "PdfGrid" was later introduced than "PdfLightTable". Is PdfGrid therefore the more "modern" class and does "PdfLightTable" only exist more or less for backwards compatibility?

Thanks for tips and suggestions in advance!


Suresh M [Syncfusion]
Replied On July 5, 2011 09:09 AM UTC

Hi Tomm,

Thank you for your interest in Syncfusion products.

The differences between the PdfLightTable and the PdfGrid is that,

- PdfGrid is supported in Silverlight environment, whereas PdfLightTable is not supported.
- PdfGrid is based on the cell model. It provides support for cell formatting, row and column spanning, and drawing nested tables in the PDF document. PdfLightTable is based on row model.

Advantages of the PdfLightTable
-It has various event handlers such as BeginPageLayout, EndPageLayout, BeginRowLayout, EndRowLayout that allows you to customize the table.

Please let us know if you have any questions.

Regards,
Suresh M



Thomas Jechalik
Replied On July 5, 2011 09:39 AM UTC

Hi Suresh, thanks for reply!

I'm still not sure what to use since I'm not in a Silverlight environment, so technically I could use both classes if I understand correctly. I have two more questions:

1) You mentioned that PdfGrid supports column and row span. Does that mean that PdfLightTable doesn't support it?

2) You said that PdfLightTable supports various customizations through event handlers. What kind of customizations are possible with PdfLightTable which are NOT possible with PdfGrid?

Basically I would like to use the more flexible class which offers more features and I'm not sure now which one to choose.


Thanks in advance!



Suresh M [Syncfusion]
Replied On July 6, 2011 11:11 AM UTC

Hi Tomm,

Please find the details,

1.Yes, PdfLightTable does not support row spanning.
2.With PdfLightTable event handlers, you can customize each cell in the table, it allows you to insert images(by getting the cell bounds) into the cells of the row, to set MinimalHeight of a row, etc.

Please refer to the sample available in the link below.

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=TableSample641579540.zip

Regards,
Suresh M



Thomas Jechalik
Replied On July 6, 2011 08:37 PM UTC

Hi Suresh,

thanks for the helpful informations! I will go with the PdfGrid (mainly because of its column and row span capabilities).



Geetha M [Syncfusion]
Replied On July 11, 2011 03:33 AM UTC

Hi Tomm,

Thank you for the update.

Please let us know if you have any questions.

Regards,
Geetha


CONFIRMATION

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.

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

;