WebGrid grid = new WebGrid(rowsPerPage: Convert.ToInt32(Model.Filters.PageSize), canSort: true, canPage: true, ajaxUpdateContainerId: "AHGrid");
grid.Bind(Model.lstAH, autoSortAndPage: true, rowCount: Model.TotalRows);
grid.PageIndex = Model.Filters.PageIndex;
IN MVC 4 We have used Webgrid functinality.
When i am trying to set pageindex manually by code. it shows exception at run time.
Please look at above code snippets and help me out.