Data grid now showing after running SQL

Your message is pretty vague, but I think I know what you are referring to.

You've unpinned the data grid panel, then when you run a SELECT SQL, it comes back, but you don't want it to come back?

If that's it, go to Options -> Editor Behavior. Uncheck "Restore unpinned panels on new data"

Otherwise, I'm going to need more details.