You could use my griddecorator mixin and apply a GridRowDecorator to each row. The decorator creates a new row after the current and moves the last element to the new row.
If not, create your own mixin which tweaks the DOM once the grid has rendered. You might want to take a look at my gridcollapse mixin where I move columns and rows about and add rowspans.