I have a data table and I want to write a loop where I can render a html table and I want to do it from scratch (not abstracted data sources).
I want to have the number of items per row a variable.
What is the correct loop syntax given a datatable with X number of records where each record is one cell.
So if I have 20 records and my NumberOfItemsPerRow = 5, I would have a html table with 4 rows.
This is how you loop to create a table with the available data. The last row is completed with empty cells to make a full row.