I seem to be having issues with getting my jqgrids working well with linq to sql in my asp.net mvc project.
The issue I am having is correctly using the sidx and sord parameters. Most resources I find say to do something like
var questions = context.Questions
.OrderBy(sidx + " " + sord)
.Skip(pageIndex * pageSize)
.Take(pageSize);
In Visual Studio 2010 (.net 4 project, MVC2) I get a compile error on the order by because it seems there is no linq orderby extension that takes just a string as a parameter, they all want a delegate/lamda.
How can I implement ordering into my app so my grids can sort properly by columns?