Make sure grouping switch is in sync with actual grid state