Dynamic rows and columns in repeating group


I am creating a program that helps teachers divides students into working groups.

We have 2 data types
Users ( aka students )

Every classroom has a list of users connected to it.
I would like to display the users in the classroom in a repeating group. But I need the rows and columns to be dynamic. The number of columns should be = to the number of students in a classroom divided by the number of rows ( the :count of the list of students connected to the classroom)
The number of rows should be = to a input by the users who wish to display the classroom)

How would I go about creating this?

Help is very appreciated!

This topic was automatically closed after 70 days. New replies are no longer allowed.