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

My own Paste from Excel to GridView

6 Answers 98 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.
Tarcisis
Top achievements
Rank 1
Tarcisis asked on 29 Feb 2012, 08:24 PM
Hi,

I have my own paste to a RadGridView.
I have the current grid:

<telerik:RadGridView .... ClipboardPasteMode="None" KeyDown="GridView_KeyDown" x:Name="myTable" />


        private void GridView_KeyDown(object sender, KeyEventArgs e)
        {
            if (Keyboard.Modifiers == ModifierKeys.Control)
            {
                if (e.Key == Key.V)
                {
 var text = System.Windows.Clipboard.GetText();
//stuff.....
}

    }

}
And it always works perfectly.
But recently i needed to update my dll´s from Telerik, and now when a make ctrl+V from my keyboard, e.Key == Key.V its always false! My code doesnt reach my "//stuff".
Could you tell me please, if there is a way to workaround this, or should i back to the oldest dll´s?


Thanks!!



6 Answers, 1 is accepted

Sort by
0
Tarcisis
Top achievements
Rank 1
answered on 02 Mar 2012, 02:45 PM
Hi there,

Just a question.
Should I post with my Companies Email account to get an answer or should i keep waiting?

Thanks!!
0
Dimitrina
Telerik team
answered on 02 Mar 2012, 03:24 PM
Hello,

 Would you please specify what was the previous version of the RadControls that you have used - the one when your code was working?

Regards,
Didie
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Tarcisis
Top achievements
Rank 1
answered on 02 Mar 2012, 03:45 PM
Hi,

Thanks for the answer!

We were using 2011.1.427.1040 and now we are using 2012.1.215.1050.

Thanks!!
0
Accepted
Vlad
Telerik team
answered on 02 Mar 2012, 03:50 PM
Hi,

Our forums are public community with no guaranteed answer from Telerik.  If you want reply from Telerik support you can open support ticket.

Greetings,
Vlad
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Tarcisis
Top achievements
Rank 1
answered on 02 Mar 2012, 03:56 PM
Hi,

Ok.Sorry.
But i just ask that because some posts Telerik answer very quickly (sometimes it is a question of hours) and others takes a few days!
And i thought it was because of the email account.

Thanks!
0
Tarcisis
Top achievements
Rank 1
answered on 07 Mar 2012, 01:10 PM
Hi,

It works with KeyUp!!!

Thanks anyway!!

Tags
GridView
Asked by
Tarcisis
Top achievements
Rank 1
Answers by
Tarcisis
Top achievements
Rank 1
Dimitrina
Telerik team
Vlad
Telerik team
Share this question
or