In the form, set the Keypreview property to .T.
In the keypress method of the form put something like this:
IF nKeyCode = 13 AND ThisForm.Wsgrid1.Activerow <> 0
ThisForm.Btn_Ok.CLICK
ENDIF
>Is there a way to do the following -
>
>On a grid control, after the user clicks on the row (selects a row/column cell) and hits enter key ; I need to run the click event of the commond button on the same form.
>
>Thanks.
>Neetu
Eric.