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

How to do Copy and Paste from Excel in Sliverlight Gridview?

3 Answers 80 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nagasai Mudara
Top achievements
Rank 1
Nagasai Mudara asked on 10 Jun 2010, 07:19 AM
Hi..

I am trying to copy few columns from excel to a column in Sliverlight girdview. I am not able to do achieve this. I am using Sliverlight 3 and VS 2008 SP1 on windows 7.
I have tried setting column values by using some thing like below
 private void Grid_RowLoaded(object sender, Telerik.Windows.Controls.GridView.RowLoadedEventArgs e)
        {
            if (e.Row.Item != null)
            {
                for (int i = 0; i < e.Row.Cells.Count; i++)
                {
                    e.Row.Cells[3].Column.IsReadOnly = false;
                }
            }
        }
But i am not able to get all columns in edit mode to copy.
Does any body has any idea doing this. Please help me.

Thanks in advance.
Nagasai

3 Answers, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 10 Jun 2010, 08:06 AM
Hello Nagasai Mudara,

 Paste from the clipboard should work by just selecting the first row and pressing CTRL + V, you don't need to get the cells into edit mode.

Sincerely yours,
Yavor Georgiev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Nagasai Mudara
Top achievements
Rank 1
answered on 11 Jun 2010, 06:15 AM
Hi..

I want to paste all the cells in that column by copying excel. How can we achieve that in this gridview.
Ex: I have an excel sheet which few rows and columns.
I need to select a column values from the sheet and paste them in the gridview column. Can we achieve this using sliverlight gridview.
Thanks in advance.
Nagasai Mudara
0
Yavor Georgiev
Telerik team
answered on 11 Jun 2010, 12:29 PM
Hi Nagasai Mudara,

 Please check out this forum post for a custom solution.

Best wishes,
Yavor Georgiev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Nagasai Mudara
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Nagasai Mudara
Top achievements
Rank 1
Share this question
or