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

How to Enable copy functionality

1 Answer 34 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Prabakaran
Top achievements
Rank 1
Prabakaran asked on 24 Mar 2016, 03:14 AM

Dear Team,

we need to enable copy functionality for our WPF application especially for radgridview. How could i enable this? As per my understanding To enable cell copy i've to do like ClipboardCopyMode="Cell" and SelectionUnit="Cell". If i apply this then row selection is not working because i am using row SelectionChanged event in order to do some operation.

<telerik:RadGridView x:Name="gvDefaultDashboard"
                                     AutoGenerateColumns="False"
                                     CanUserResizeColumns="True"
                                     Padding="1,0,0,0"
                                     SelectionMode="Single"
                                     EnableColumnVirtualization="False"
                                     ItemsSource="{Binding RelativeSource={RelativeSource AncestorType=UserControl},Path=DataContext.GetPagedInfo,Mode=TwoWay}"
                                     SelectionChanged="gvDefaultDashboard_SelectionChanged"
                                     Filtering="gvDefaultDashboard_Filtering"
                                     FilterOperatorsLoading="OnRadGridViewFilterOperatorsLoading"
                                     AutoExpandGroups="True"
                                     Sorting="gvDefaultDashboard_Sorting"
                                     Grouping="gvDefaultDashboard_Grouping"
                                     telerik:PersistenceManager.StorageId="{Binding DashBoardPersistenceID,Mode=TwoWay}" ClipboardCopyMode="Cells" SelectionUnit="Cell">
</telerik:RadGridView>
.

I want to enable cell copy without affection the row selectionchanged event how could i achieve this. Please advice.

Thank you.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 25 Mar 2016, 03:43 PM
Hello Prabakaran,

In such scenario, you can use the CurrentCellChanged event that RadGridView provides. You can take a look at the events Overview topic for further reference.

Can you please give it a try and let me know whether it corresponds to your needs?

Regards,
Stefan X1
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Prabakaran
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or