resets sizes of the grid's elements
mygrid.setSizes();
the method is used to refresh the grid after the size of its container has changed