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

How to span a column in a PdfDocument by using the PdfLightTable?

Platform: WinForms |
Control: PDF

You can span a column in the PdfDocument by using the PdfLightTable class. For this, you need to call the row events of the PdfLightTable and then apply the column span at the respective row index.


// Create a new instance of PdfDocument class.
PdfDocument document = new PdfDocument();
// Add a page to the document.
PdfPage page = document.Pages.Add(); 
//Create pdfLightTable.
PdfLightTable table = new PdfLightTable();
// Set the database into pdflighttable source. 
table.DataSource = CreateTable();
// Call the row events.
table.BeginRowLayout += new BeginRowLayoutEventHandler(table_BeginRowLayout);
// Draw the table into page.
table.Draw(page, new PointF(0, 0));          
// Save and close the document.
//Row event method.
private void table_BeginRowLayout(object sender ,BeginRowLayoutEventArgs args)
if (args.RowIndex == 0 || args.RowIndex == 4)
int[] span=new int[2]; //Array length is table.column count. 
span[0] = 2;
args.ColumnSpanMap = span;

Sample Link:



2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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

Live Chat Icon For mobile