How to add case statement for Grid column ?

Oct 4, 2016 at 4:04 AM
I would like to enable/disable a button based on column value. Not sure how to do that.. I am new to C# , ASP.net world. Please help.

For eg.,
Adding a case statement for following part of code:

new Column { ClientFormat = GridUtils.EditFormatForGrid("DinnersGrid"), Width = 50 }))
Oct 4, 2016 at 7:06 AM
@{
var cols = new List<Column>();
if(x) cols.Add(new Column {..});
}


Grid().Columns(columns)