AND THIS?

If the grid is not pinned
it must be regenerated, currently when a grid is generated and if another query is executed it generates another grid it only shows the grid when the cursor is blinking over the query.