开发者

Edit only one column in MvcContrib Grid + MVC 2.0

开发者 https://www.devze.com 2023-03-14 21:08 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号