Update the grid.