Parse grid.