rendering row-wise grouping