Here is my webgrid:
<div id="grid">
@grid.GetHtml(
tableStyle: "grid",
headerStyle: "head",
alternatingRowStyle: "alt",
columns: grid.Columns(
grid.Column("FullName", "Name"),
grid.Column("User.Email", "Email", format:@<a href="mailto:@item.User.Email">@item.User.Email</a>),
grid.Column("User.PhoneExtension", "Extension"),
grid.Column("ManagerName", "Manager"),
grid.Column("User.Roles", "Roles"),
grid.Column("", format: (item) => new HtmlString(Html.ActionLink("Edit", "Edit", new { userName = item.User.UserName } ).ToString() + "|" + Html.ActionLink("Details", "Details", new { userName = item.User.UserName }).ToString()))
)
)
User.Roles is a collection of string. How can I use "format: " to output each role, then a linebreak in that cell? Thanks in advance.