Grid button return to grid

It is any way to return to the grid after clicking a button, not to open another window with “OK”?
I used sc_redir(‘grid_main’) to back to the grid, but I do not think it is correct way.