Can somebody give an advise why keydown event of the grid does not work for arrow keys and PageUp, PageDown. How to make it work?
Printable View
Can somebody give an advise why keydown event of the grid does not work for arrow keys and PageUp, PageDown. How to make it work?
Annoying isn't it ? It's actually documented (somewhere) in the documentation / MSDN.
You can get around this in two ways (that I've found) -
- Place a textbox behind the Grid and use the keydown/press events there to capture the keystrokes (ie. set focus the the textbox when the grid get's focus)
- SubClass the control and capture the keystrokes yourself (quite a bit of work if I remember correctly).
Chris Eastwood
CodeGuru - the website for developers
http://codeguru.developer.com/vb