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

GridView KeyBord Event value --> Html Page

0 Answers 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nam
Top achievements
Rank 1
Nam asked on 10 Nov 2011, 07:31 AM

Hi telerik team!

I'm trying to transmit the value of "KeyBoard Event" occurring at GridView to HtmlPage.
I had two problems when transmission of the value like Alt + F, D, G as below.

1) No detect "Alt" KeyDown Event in "MainPage_SpecKeyEvent" Method
2) When practice HtmlPage.Window.Invoke from MainPage_SpecKeyEvent Method,
it occurred "{System.AccessViolationException: Attempted to read or write protected memory} Exception".

FYI, my work source code is the followings.

public MainPage(String element)
{
 InitializeComponent();
 .......................... (omit)
 this.DataGridView.KeyDown += new KeyEventHandler(MainPage_SpecKeyEvent);
}

public void MainPage_SpecKeyEvent(object sender, KeyEventArgs e)
{
 HtmlPage.Window.Invoke("JavaScript Function", "Argument");
}

Please give us your advise above two problems .

Thank you for your help in advance .

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Nam
Top achievements
Rank 1
Share this question
or