noor unnisa

noor unnisa

  • NA
  • 19
  • 2.3k

Web grid syntax error

Oct 13 2015 4:53 AM


@{

    var gd = new WebGrid(Model, canPage: true, rowsPerPage: 5, selectionFieldName: "selectedRow",ajaxUpdateContainerId: "gridContent");

        gd.Pager(WebGridPagerModes.NextPrevious);
}
 
this is the code am writing in view for creating a web grid ,but its showing the following error ,
 
The best overloaded method match for 'System.Web.Helpers.WebGrid.WebGrid(System.Collections.Generic.IEnumerable<dynamic>, System.Collections.Generic.IEnumerable<string>, string, int, bool, bool, string, string, string, string, string, string, string)' has some invalid
 
 
This code I have taken from c#-corner site's tutorial named WebGrid in ASP.Net MVC 4 to Show the Content in Grid Format
By Anubhav Chaudhary on Aug 06, 2013 .
 
 

Answers (1)