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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PDF export - suppressing selected row

Thread ID:

Created:

Updated:

Platform:

Replies:

96704 Sep 29,2010 04:39 PM UTC Oct 7,2010 04:20 AM UTC WinForms 1
loading
Tags: GridControl
Colin Lomas
Asked On September 29, 2010 04:39 PM UTC

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



Christopher Issac Sunder K [Syncfusion]
Replied On 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.



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.

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

;