我與語法gremlins與WebGrid掙扎。在我正常的剃刀標記I格式的日期我的foreach裏面,像這樣Webgrid日期時間和設置樣式的格式
<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", ?, ?)
這是行不通的。編譯器錯誤。再試一次。 – 2011-07-19 04:21:40
修好了。這應該現在工作。 – Nandu 2012-02-10 03:20:33