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.

PdfGrid repeat first row across pages

Thread ID:

Created:

Updated:

Platform:

Replies:

121003 Nov 2,2015 08:26 AM Nov 3,2015 11:26 PM WinRT 3
loading
Tags: PDF
Brian Seelig
Asked On November 2, 2015 08:26 AM

I have a PdfGrid that I'm manually populating, not using DataTable, and I want the first row of the grid to repeat across pages. Is this possible to do without using a DataTable?

Thanks,
Brian

Abirami Selvan [Syncfusion]
Replied On November 3, 2015 04:30 AM

Hi Brain,
Thank you for contacting syncfusion support.
We can use PDF grid header to repeat the rows across all the pages. We have created the simple sample for your reference.
Please refer to the following code example:
//Create the pdfgrid

PdfGrid pdfGrid = new PdfGrid();

//Add grid columns

pdfGrid.Columns.Add(5);

//Add the header

PdfGridHeaderCollection headers=pdfGrid.Headers;

PdfGridRow[] header=headers.Add(1);

header[0].Cells[0].Value = "header cell 1";

header[0].Cells[1].Value = " header cell 2";

//enable the repeat header as true.

pdfGrid.RepeatHeader = true;
Please refer the sample:
http://www.syncfusion.com/downloads/support/forum/121003/ze/sample1550986484
Please try this and let us know if you need any further assistance.
Regards,
Abirami.

Brian Seelig
Replied On November 3, 2015 10:30 AM

This worked perfectly. Thank you,
Brian

Abirami Selvan [Syncfusion]
Replied On November 3, 2015 11:26 PM

Hi Brain,

Thank you for your update. Please let us know if you need any further assistance.

Regards,
Abirami.

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.

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.

;