我有一个这样的网格:
WebGrid grid = new WebGrid(source: Model, rowsPerPage: 5, ajaxUpdateContainerId: "GridContainer");
现在,我想将“MyContent”列显示为原始HTML。我应该怎么办?
<div id="GridContainer">
@grid.GetHtml(columns:
grid.Columns(
grid.Column(
columnName: "MyContent",
//Format: What should I put here?
)
)
)
</div>