Grid management

This code snippet shows how to change the virtual size of the grid and how to remove objects from it.