Creating and configuring the grid