Adding a code for closeAfterReset in serchGrid method