shouldn't this be done before the grid panel is created?