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

How can I copy / paste entire table including column headers?

Thread ID:





91215 Nov 9,2009 09:10 PM UTC Nov 10,2009 10:24 AM UTC WinForms 1
Tags: Grouping
Eftal Soguk
Asked On November 9, 2009 09:10 PM UTC

I was using a basic syncfusion grid and it worked fine. I switched to a gridgrouping control for added functionality. Users need select entire copy, copy and paste it.

After switching gridgroupingcontrol, headers are no longer copy/pasted. I get the entire grid, all of the data, but the headers are missing. I have overriden the copy event:

this.m_exposuregridGroupingControl.TableModel.ClipboardCopy += new GridCutPasteEventHandler(TableModel_ClipboardCopy);


void TableModel_ClipboardCopy(object sender, GridCutPasteEventArgs e)
e.ClipboardFlags = e.ClipboardFlags | GridDragDropFlags.ColHeader | GridDragDropFlags.Compose | GridDragDropFlags.Styles;


Event is called and settings are passed, but the column headers are not included in the copy/paste. If I try to copy/paste rowheaders using the above function, it works...but column headers are ignored. Could you pls help?

Rajadurai C [Syncfusion]
Replied On November 10, 2009 10:24 AM UTC


Thanks for your interest in Syncfusion Products.

With gridgroupingcontrol, the TableOptions.AllowSelection property allows user to select the entire table using mouse and copies the contents of the records and column headers while clipboard copy.

It would be fine to track the issue and find the cause for it, if you provide us a minimal sample reproducing the issue.



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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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