请看下面的代码,我需要评估列中的一个元素,我想像这样评估它但它不起作用: if(c=>c.EditableFlag == "Y")
但这不会评估,我怎样才能找出列中的值?
<li>
@{
if (Model.ProductDetails.WhyBuyDescriptions.Count > 0)
{
Html.Grid(Model.ProductDetails.WhyBuyDescriptions).Columns(column =>
{
column.Custom(@<div>
<a href="javascript:EditRomanceCopyClick()">
Edit</a> <a href="javascript:DeleteProductClick()">
Delete</a>
</div>).Named("Actions");
column.For(c => c.Description.Shorten())
.Named("Why Buy Description").Format("{0}");
})
.Attributes(id => "WhyBuyGrid", width => "100%")
.Render();
}
}
</li>