Anjali Khan

Anjali Khan

  • NA
  • 867
  • 221.5k

i am getting error when creating a web grid in mvc

Jan 25 2017 8:17 AM

hi frnds

I am creating a web grid but am getting error I am sharing a code pl let me know where I m stuck

 

@using (Html.BeginForm("Find" , "SearchNew")){

@Html.ValidationSummary(true)

<fieldset>

<legend></legend>

@{

var grid = new WebGrid();

@grid.GetHtml(

headerStyle: "headerStyle",

tableStyle: "tableStyle",

alternatingRowStyle: "alternateStyle",

columns: grid.Columns(

grid.Column(columnName: "Id", header: "Id"),

grid.Column(columnName: "Summary", header: "Summary"),

grid.Column(columnName: "Status", header: "Status")))

}

</fieldset>

 

Answers (1)