Do not allow that the selection moves outside in grid view.