Ensure collapsed rows stay collapsed when adding and removing groupings.