I have List of checkbox in my view. it shows me in vertical format. Like
a
b
c
d
...
But i want to format that in such a way that will look like.
a b c d
e f g h
i j k l
My code looks like this
@foreach (var item in Model)
{
<table>
<tr>
<td><input type="checkbox" id="@item.DataId" name="Data"/>@item.DataName</td>
</tr>
</table>
How can i format this?