HunainHafeez 9 Posting Whiz

getting this error:

The best overloaded method match for 'System.Web.Helpers.WebGrid.WebGrid(System.Collections.Generic.IEnumerable<object>, System.Collections.Generic.IEnumerable<string>, string, int, bool, bool, string, string, string, string, string, string, string)' has some invalid arguments

i am trying this code

public ActionResult Generated_PaySlip(int? emplID, String month) 
        {
            var PaySlip = DataContext.GetMonthlyReport(emplID, month).SingleOrDefault();
            return View(PaySlip);
        }

VIEW:

@using EmployeeAttendance_app.Models

<h2>Employee Pay Slip</h2>

@{

     var grid = new WebGrid(ViewData.Model, rowsPerPage: 20);

 }

 @grid.GetHtml();
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.