【发布时间】:2012-10-04 01:22:59
【问题描述】:
我在使用 WebGrid 处理语法问题。在我的普通剃须刀标记中,我像这样在我的 foreach 中格式化日期
<td>
@String.Format("{0:MM/dd/yy hh:mm:ss}", item.complianceedatetime)
</td>
我这样设置列宽
<th width="150px">
Download Date/Time
</th>
如何使用 Grid.Column 语法来做到这一点
grid.Column("complianceedatetime", "Download Date/Time", ?, ?)
【问题讨论】: