Repeating table rows

I have a table and want to add a row for every record. However, my datasource is a custom object with a Collection instead of a dataset. I saw that if I were using a dataset I could use the ExecuteDataTable to create multiple rows. But I need to loop through my collection one by one to set the values, so that won’t work. Is there some way I can do this?

Answered my own question - I can just build a DataTable and use that in the ExecuteWithRegions call.