>Hi All,
>
>I've got a form with a grid and a command button that has its default property set to .T.. Any ideas how I catch a return when focus is on the grid to the command button's click?
>
>Regards
>
>Paul
Ctrl+Enter directly works.
You could catch that setting form.keypreview=.t. in form.keypress. Or in afterrowcolchange you could check :
if !mdown() and lastkey()=13
Cetin