This code is already in refreshGrid (where it should be so the refresh button works).