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

Hidden columns are copied to Clipboard

Thread ID:





61862 Jun 4,2007 11:01 AM UTC Jun 5,2007 10:11 PM UTC WinForms 4
Tags: GridControl
Asked On June 4, 2007 11:01 AM UTC


My Grid consists of 5 columns in which 2 of them are hidden. When an entire grid (including column header) is highlighted and copied into an Excel spreadsheet, it shows hidden columns also.

Is there any one to guide and send me sample code to copy only visible columns in grid when highlighted.

Thanks & regards

haneefm [Syncfusion]
Replied On June 4, 2007 03:42 PM UTC

Hi Praveen,

Here is forum link that discusses how you might do this and has code snippets.

Best regards,

Replied On June 5, 2007 06:43 AM UTC

Thanks Haneef, it helped me.

Replied On June 5, 2007 07:10 AM UTC

Hi Haneef,

This is working fine if entire grid is selected, but if desired columns/rows (say alternate) are selected then only the last selected column/row is pasted in excel sheet. This bug raised only when I put your supplied code.

FYI: Hidden columns are not copied in this case.

Thanks and regards

haneefm [Syncfusion]
Replied On June 5, 2007 10:11 PM UTC

Hi Praveen,

Here is a forum thread that modify the copy behavior in a grid.

Best regards,


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

This page will automatically be redirected to the 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