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

Key shortcut

2 Answers 141 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Marcin asked on 13 Nov 2010, 07:30 PM
Hello,
how i can implemented shortcut ctrl+d or ctrl+shift+d event ? I use KeyPress() but in e I have only one key. Finally i want to copy value from upper row, during edition new rows.
Thanks for help.

2 Answers, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 13 Nov 2010, 07:46 PM
Hello,

Please take a look at this documentation article. This will explain the basics for creating and handling shortcuts.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga

Telerik WinForms MVP
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 13 Nov 2010, 07:48 PM
Or just handle the KeyDown event and do something like this:
void radGridView1_KeyDown(object sender, KeyEventArgs e)
{
    if (e.KeyData == (Keys.Control | Keys.Shift | Keys.D))
    {
        MessageBox.Show("Cntl + Shift + D Pressed!");
    }
}

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga

Telerik WinForms MVP
Tags
GridView
Asked by
Marcin
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Share this question
or