I have a repeater control outputting some HTML. I want a table which outputs 4 columns and then start a new row (each column will be the next item in the data set).
I can do this with inline statements:
<% if ((i + 1) % 4 == 0 && i > 0)
{ //5 items per row%>
</tr>
<% } %>
But I can't seem to initialise i within the repeater control. Any ideas?
I am using a repeater control because I have implemented pagination as a gridview was not appropriate due to how I am displaying the content.