I'm currently displaying my list of checkboxes like this:
foreach (var employee in Model.Employees) {
@Html.CheckBox(employee.Name);<br />
}
This is great if you want one long column of checkboxes, but my list is getting long, so I want to display it in 2 or 3 columns.
Is there an easy way to do this? I know I can create a table, then put in a for loop for the first half of the Employees for one column, and then another for loop for the other half of the Employees in another column. But that seems so primitive, there has to be a simpler, cleaner way.