in the grid keypress event
if tnEvent=13
thisform.defaultbutton.click()
endif
>Hi,
>
>A form has a grid and a button with Default property set to .T. How can I make this button click to be called when user presses on Enter key and the focus is in the grid?
>
>TIA.