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.

PDF export - suppressing selected row

Thread ID:





96704 Sep 29,2010 12:39 PM Oct 7,2010 12:20 AM Windows Forms 1
Tags: GridControl
Colin Lomas
Asked On September 29, 2010 12:39 PM

Hi, I'm using a GridPDFConverter to export a gridgroupingcontrol to a PDF. One thing i want to do is suppress the formatting of any selected row(s) which currently appear highlighted on the PDF - i just want them to appear as the rest of the (unselected) rows do. Is this easy to do?


Christopher Issac Sunder K [Syncfusion]
Replied On October 7, 2010 12:20 AM

Hi Colin,

Thank you for your interest in Syncfusion products.

You can get the selected records to a temporary collection when the button clicked and then clear the selected records and then add the selected records after the exporting completed.

//in export button clicked
private void button1_Click(object sender, EventArgs e)
Record[] records = new Record[100];
int i = 0;
foreach (SelectedRecord rec in this.gridGroupingControl1.Table.SelectedRecords)
records[i] = rec.Record;

//exporting codes written here

foreach (Record rec in records)
if (rec != null)

Please refer the following sample which illustrates the above.


Please let me know if you have any other concerns.



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.