Check
Grid that allows sorting by clicking on the header Download #
37293 for code binding column's textboxes to grid's methods.
>Hi Gang!
>
>I have a form with a grid on it.
>
>I want the grid's keypress event to fire and capture the ENTER key when it is pressed on a row.
>
>Here is the code in the Keypress Event
>
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>
>*If ENTER key pressed, the click the checkbox for this row...
>IF nKeyCode = 13
> This.column20.chkSelected.Click
>ENDIF
>
>
>The Form's KeyPreview Property is FALSE.
>
>When I run the form and press the ENTER key when the grid has focus, the Keypress Event does not Fire.... I put a break on the IF nKeycode = 13 line, but it does not stop there. I even put a SET STEP ON in the event.
>
>So...?????? Any ideas why the Keypress Event does not fire when I press any key in the grid?
>
>Thanks!
If it's not broken, fix it until it is.
My Blog