1
Answer

Web grid syntax error

noor unnisa

noor unnisa

9y
398
1


@{

    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)