Adjusts layout of the grid items.
Called to adjust the layout of the grid items and redraws the grid control.