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 export multiple WinForms GridGroupingControl data into a single PDF file?

Platform: WinForms |
Control: GridGroupingControl

PDF Export

To export one or more GridGroupingControl to the PDF document, use the ExportToPdfWithMerge method of GridPDFConverter class and set the PdfMergeMode enum to either MergeBefore or MergeAfter.


private void button1_Click(object sender, EventArgs e)
    GridPDFConverter pdfConvertor = new GridPDFConverter();
    //Default is None. So, merge mode must be set.
    pdfConvertor.PdfMergeMode = GridPDFConverter.MergeMode.MergeAfter;
    //Export 1st Grid.
    pdfConvertor.ExportToPdf(gridDoc, this.gridGroupingControl1.TableControl);
    //Export 2nd & 3rd grids.
    pdfConvertor.ExportToPdfWithMerge(ref gridDoc, this.gridGroupingControl2.TableControl);
    pdfConvertor.ExportToPdfWithMerge(ref gridDoc, this.gridGroupingControl3.TableControl);



Private Sub button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles button1.Click
     Dim pdfConvertor As New GridPDFConverter()
     'Default is None. So, merge mode must be set.
     pdfConvertor.PdfMergeMode = GridPDFConverter.MergeMode.MergeAfter
     ‘Export 1st Grid.
     pdfConvertor.ExportToPdf(gridDoc, Me.gridGroupingControl1.TableControl)
     ‘Export 2nd & 3rd grids.
     pdfConvertor.ExportToPdfWithMerge(gridDoc, Me.gridGroupingControl2.TableControl)
     pdfConvertor.ExportToPdfWithMerge(gridDoc, Me.gridGroupingControl3.TableControl)
End Sub



C#: Export multiple grid to PDF_CS

VB: Export multiple grid to PDF_VB

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