Hide column on copying

2 posts, 0 answers
  1. Dario Concilio
    Dario Concilio avatar
    129 posts
    Member since:
    Apr 2016

    Posted 07 Jun Link to this post

    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()

  2. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 09 Jun Link to this post

    Hello Potito,

    Thank you for writing. 

    The following help article is quite useful about 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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top