General discussion

Locked

keydown event does not fire in a datagrid

By raja7009 ·
I have a Datagrid that is inside a panel. I want to use the keyDown event to
reconize the arrow keys. But I have no luck at all. The problem is that the
keydown event won't fire at all, unless I click on a row (withs will turn
blue then) and then click on it again . Now if I press any key the event will
fire (except for the arrow keys).

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

First of all

by Tony Hopkinson In reply to keydown event does not fi ...

calm down.
Second this is the discussion group and questions should be posted to Technical Q&A
Third ask a question
Fourth, a few bit's of info would be useful, In this case what design environment are you using, VB perhaps ? What sort of Datagrid MSHFlexGrid ?

Being picky but if but if a user emailed you something like you just posted here you would probably be hard pressed to resolve the issue with out contacting them and politely saying WTF.

We are meant to be better than that.

While you are waiting for an answer most grid components intercept arrow keys and use them for navigation. Also the Datagrid.OnKeyDown event will never fire unless the datagrid has the focus.

Take a deep breath and make sure any pain you are feeling isn't coming from shooting yourself in the foot.

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums