我想将 System.Web.HttpUtility.HtmlDecode 与 WebGrid 一起使用,但它不起作用我的代码是:
grid.GetHtml(tableStyle: "webGrid",
htmlAttributes: new { id = "DataTable" },
headerStyle: "header",
alternatingRowStyle: "alt",
columns: grid.Columns(
grid.Column("ArtId"),
grid.Column(columnName: "ArtDescription",
format: item => System.Web.HttpUtility.HtmlDecode(item.ArtDescription))
)
)