fixed issue with grid and groupby
Merge pull request #163 from niphlod/issue/grid_and_groupby

fixed issue with grid and groupby