Update grid structure