Firstly it is entirely possible to do this. Secondly, you should not do this. Consider using
to make the layout "flow". The "table" created with divs will resize with the window then.
@{
int groupings = 3;
var grouped = Model.Select((x,i) => new { x, i = i / groupings })
.GroupBy(x => x.i, x => x.x);
}
@foreach(var items in grouped)
{
@foreach(var item in items)
{
Rtn. @item.Mem_NA (@item.Mem_Occ) |
}
}
Using divs you would...
@foreach(var item in Model)
{
Rtn. @item.Mem_NA
(@item.Mem_Occ)
}