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

RadGridView Copy event

1 Answer 490 Views
GridView
This is a migrated thread and some comments may be shown as answers.
CSL
Top achievements
Rank 1
CSL asked on 16 Nov 2016, 03:07 AM

Hi,

 

I have a RadGridView ( ClipboardCopyMode="Cells,Header"  SelectionMode="Multiple" SelectionUnit="FullRow"). How can I raise the Copy and Paste Event which I would like to write into the Copy Button. I want the selected row and the header of the radGridView column to copy to clipboard without using Ctrl + C.

 

Thank you

1 Answer, 1 is accepted

Sort by
0
Accepted
Dilyan Traykov
Telerik team
answered on 18 Nov 2016, 01:05 PM
Hello,

In order to achieve the desired behavior, you can define the Command of your button to RadGridView's Copy command, similarly to the approach demonstrated in this article.

<Button Name="CopyButton" Content="Copy" Command="telerik:RadGridViewCommands.Copy" CommandTarget="{Binding ElementName=gridView}"

You can use the same approach for the Paste command and then handle RadGridView's copying & pasting events however you find applicable.

Should you need any further assistance on the matter, please let me know.

Regards,
Dilyan Traykov
Telerik by Progress
Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
Tags
GridView
Asked by
CSL
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or