| title | Working with Tables in .NET PDF Library | Syncfusion |
|---|---|
| description | Learn how to create or add a table to a PDF document, apply cell style & built-in table styles, automatic pagination, customize the rows and columns, and more. |
| platform | file-formats |
| control | |
| documentation | UG |
The Syncfusion .NET PDF library provides support for two types of PDF table models, both having a different levels of customization, which is explained as follows. The two types of table models are:
N> We strongly recommend to use PdfGrid for creating table in PDF document since it represents flexible grid which supports various customization of rows and columns.
Both the PdfGrid and PdfLightTable models are supported across all the platforms and the following table explains the level of customizations both the models provide.
| Features | PdfLightTable | PdfGrid |
|---|---|---|
| {{ '**Formatting**' | markdownify }} | ||
| Row | No direct API, possible through events. | Yes |
| Column | Yes (StringFormat) | Yes (StringFormat) |
| Cell | No direct API for single cell formatting, possible through events. | Yes |
| {{ '**Others**' | markdownify }} | ||
| Row span | No | Yes |
| Column span | No direct API, possible through events. | Yes |
| Nested Grid | Possible through events | Yes |
| Layout Events | BeginCellLayout, BeginPageLayout, BeginRowLayout, EndCellLayout, EndPageLayout, EndRowLayout | BeginPageLayout, EndPageLayout |