Razor Web Grid with a ForEach Column
, grid.Column("Roles", header: "Level", format: (item) =>
{
string roletemp = string.Empty;
foreach (var x in item.systemUserRoles)
{
roletemp += x.systemRole.roleDescription + "
";
}
return new HtmlString(roletemp);
})
{
string roletemp = string.Empty;
foreach (var x in item.systemUserRoles)
{
roletemp += x.systemRole.roleDescription + "
";
}
return new HtmlString(roletemp);
})
Comments