I've got a grid (yes, the same grid as my previous problem, bl00dy grids, mumble, whine) which is bound to a table. There is only one column on the grid available to the user, so I've set it so that if any of the other columns get focus, focus is set back to the available column.
Anyway, my problem is that I want to allow the user to use the <RET> key to move through the records -- when they press return, it moves down the grid, as if the down cursor was used. I tried putting this into the KeyPress event:
but it doesn't appear to do anything, or it certainly doesn't move to the next record. I was sure I could do something like this, although I'm not convinced KeyPress is the right event.
Any thoughts, all y'all?
Anyway, my problem is that I want to allow the user to use the <RET> key to move through the records -- when they press return, it moves down the grid, as if the down cursor was used. I tried putting this into the KeyPress event:
Code:
IF nKeyCode = 13
SKIP
ENDIF
but it doesn't appear to do anything, or it certainly doesn't move to the next record. I was sure I could do something like this, although I'm not convinced KeyPress is the right event.
Any thoughts, all y'all?