Trapping Arow keys in Datagrid Form
Posted: Wed Mar 26, 2014 4:25 am
Hi,
I have a simple data grid form where each row consists of one field.
I want to populate a field, external to the data grid with content, that depends on the row in the data grid that is selected by the mousedown event.
I can do this with the mousedown handler in the row behaviour and it works fine.
But I would also like to do the same thing when a user uses the arrow keys to move up or down the data grid.
Using the arrow keys does what it should, i.e moves up and down the grid BUT how do I trap the arrow key event to do something else as well?
In my case, do the same as is done by the already working mousedown handler.
I have tried an "on arrowkey thekey" handler in the row behaviour.
I have tried a "before arrowkey the key" handler in the row behaviour.
Neither is called (I put a BEEP in them to tell if they are.)
Can I trap the arrow key in the way I want?
I have a simple data grid form where each row consists of one field.
I want to populate a field, external to the data grid with content, that depends on the row in the data grid that is selected by the mousedown event.
I can do this with the mousedown handler in the row behaviour and it works fine.
But I would also like to do the same thing when a user uses the arrow keys to move up or down the data grid.
Using the arrow keys does what it should, i.e moves up and down the grid BUT how do I trap the arrow key event to do something else as well?
In my case, do the same as is done by the already working mousedown handler.
I have tried an "on arrowkey thekey" handler in the row behaviour.
I have tried a "before arrowkey the key" handler in the row behaviour.
Neither is called (I put a BEEP in them to tell if they are.)
Can I trap the arrow key in the way I want?