Edit only one column in MvcContrib Grid + MVC 2.0
How can I edit only one of the columns( the last one) in the MvcContrib Grid. When the Edit button is clicked other columns should not be editable.
I have the following grid
<% Html.Grid(Model.InnerModel.ListRecords) .Empty("No data available") .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); }).Render(); %>
I need to allow the user to enter Comments, but rest of the column开发者_运维百科s should not be editable.
how can I do that.
精彩评论