I have a web grid and I am not using razor syntex.Rather I am using the .aspx form. the code is below;
<% var grid = new WebGrid(Model,defaultSort:\"Publi
grid.Column( "PublishDate", "Published on", format: (item) => string.Format("{0:dd-MMM-yyyy}", item.PublishDate) )