Working with the selected grid