In the example for sql server they use inline statements and pass in the sortexpression and add it in the statement. If you are using stored procedures how do you use the passed in sortexpression for sorting the grid? the sortexpression being passed in may look like "weight asc" as you may know.
I do see you can add an .Orderby at the end of the return on the Db.Readlist but I'm not sure how that works.
Thanks
Dennis
public List<Audit> GetAudits(int id, string type, string code, string sortExpression)
{
string proc = @"usr_StoredProc";
object[] parms = {"@type", type, "@id", id, "@code", code};
return Db.ReadList(proc, Make, parms);
}