page refreshes automatically

Hi,



I have grid on jsp page. Sometimes i seen that when i press enter key, the jsp page get refresh automatically.

If you pressing enter key while focus inside grid - it will stop event and prevent any default actions.
If focus moved out from grid ( in case of IE it can be caused by click anywhere outside of grid ) - enter key will be processed by default page handlers, if your page has form - it may react on enter key pressing by page sending.

Yes, Focus is moved out of grid.
Now How to avoid  the page  refreshing?

If focus moved outside of grid the page refreshing caused by default page logic, it can’t be caused|prevented by grid component.