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

[Solved] select all and copy

3 Answers 157 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 16 Apr 2012, 05:22 PM
Hi,

I am trying to select and copy all the grid rows, but it does not work. I only get one row copied. Any idea how to solve this? See my code below
GridViewSessions.ItemsSource = _itemsSource;
 
                            if (e.Entities.Count() > 25)
                            {
                                GridViewSessions.SelectionMode = System.Windows.Controls.SelectionMode.Multiple;
                                GridViewSessions.SelectAll();
 
                                var copyCommand = RadGridViewCommands.Copy as RoutedUICommand;
                                copyCommand.Execute(null, GridViewSessions);
                            }

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 17 Apr 2012, 08:53 AM
Hi Alex,

Could you try setting ClipboardCopyMode property of the grid ? Do you still get the same behavior ?  

All the best,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Alex
Top achievements
Rank 1
answered on 17 Apr 2012, 10:36 AM
I do set ClipboardCopyMode to All. it selects all the rows, but does not copy them to clipboard :(
0
rahul
Top achievements
Rank 1
answered on 30 May 2012, 01:50 PM
are you able to resolve this???
I', facing similary issue. Will be great help if you can share solution.

Thanks,
Rahul
Tags
GridView
Asked by
Alex
Top achievements
Rank 1
Answers by
Maya
Telerik team
Alex
Top achievements
Rank 1
rahul
Top achievements
Rank 1
Share this question
or