I have a custom table for a small site my organization is working on that contains information about some of our upcoming events; specifically, the name of the location, the address, and then a link to Google Maps so that our users can get directions.
I am displaying this data with a repeater. The data pulls, displays, and works correctly according to the transformation I've built:
<a href="<%# Link %>" class="col-out span3" target="_blank">
<div class="col-btn pagination-centered">
<h2><%# Location %></h2>
<p class="lead"><%# Address %></p>
<p><%# City %>, <%# State %> <%# ZIP %></p>
<span class="glyphicon glyphicon-map-marker glyphicon-huge"></span>
</div>
</a>
However, I'd like to able to wrap every 4 records that are output by this transformation in <div> tags so that I can apply some more CSS styles that will lay them out neatly in rows of 4 on the page.
Would it be easier to do this with C# in the transformation, or would this be a good example of when to use a hierarchical transformation?