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

PDF export - suppressing selected row

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?

thanks
colin



1 Reply

CI Christopher Issac Sunder K Syncfusion Team October 7, 2010 04:20 AM UTC

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;
i++;
}
this.gridGroupingControl1.Table.SelectedRecords.Clear();

//exporting codes written here

foreach (Record rec in records)
{
if (rec != null)
this.gridGroupingControl1.Table.SelectedRecords.Add(rec);
}
}


Please refer the following sample which illustrates the above.

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=GGC_PDFEXport966339112.zip

Please let me know if you have any other concerns.

Regards,
Christo.



Loader.
Live Chat Icon For mobile
Up arrow icon