ASP.NET Generate a table from list with dynamic number of rows and columns
<p>I have a list of items which I want the user to be able to tick which are appropriate to them.</p>

<p>Currently I have a <code>&lt;ul&gt;</code> generated by a <code>Repeater</code> with checkbox and label controls placed in side, all working fine.</p>

<p>However, the <code>&lt;ul&gt;</code> is taking up too much space on the screen and I need to condense it. I think the best approach would be a table that expands based on the number of items, 9 resultining a 3x3 grid, 12 a 3x4 grid, 16 a 4x4 grid etc up to a maximum width of 6 rows.</p>

<p>Any suggestions for where to start?</p>
