Setting up grid to take values