Full rewitting of the pivot grid with support of grouping columns and rows