仅编辑MvcContrib Grid + MVC 2.0中的一列

时间:2011-06-22 14:42:55

标签: asp.net-mvc-2 mvccontrib

如何只编辑MvcContrib Grid中的一列(最后一列)。单击“编辑”按钮时,其他列不可编辑。

我有以下网格

<%Html.Grid(Model.InnerModel.ListRecords)                             .Empty(“没有数据可用”)                             .Attributes(new Hash(id =>“ReportResultsTable”))                             .Columns(column =>                                          {                                              column.For(x => x.DateReceived);                                              column.For(x => x.OrderNumber);                                              column.For(x => x.DateSent);                                              column.For(x => x.Comments);                                           })渲染(); %GT;

我需要允许用户输入评论,但其余列不应该是可编辑的。

我该怎么做。

0 个答案:

没有答案
相关问题