This is a migrated thread and some comments may be shown as answers.

Hide column on copying

1 Answer 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dario Concilio
Top achievements
Rank 2
Dario Concilio asked on 07 Jun 2016, 08:17 AM

I would hide a column before copy selected items.

Generally I use first column as Icon, but I have to remove it before copying.

How can I do?

Is exists a specific event to use before call Copy method?

ItemsRadGridView.SelectAll()
ItemsRadGridView.ClipboardCopyMode = GridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText
ItemsRadGridView.Copy()

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 09 Jun 2016, 01:03 PM
Hello Potito,

Thank you for writing. 

The following help article is quite useful handling the copy, paste and cut operations in RadGridView: http://docs.telerik.com/devtools/winforms/gridview/copy-paste-cut

If you need to customize the copied data, you can use a similar approach as the demonstrated in this KnowledgeBase article: http://www.telerik.com/support/kb/winforms/gridview/details/copy-paste-displaymember-for-gridviewcomboboxcolumn

I hope this information helps. Should you have further questions I would be glad to help.
Regards,
Dess
Telerik
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Tags
GridView
Asked by
Dario Concilio
Top achievements
Rank 2
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or