With an ASP.NET MVC3 WebGrid how can I setup the column sorting such that clicking on the column heading toggles between ascending sort and then descending sort?
Thanks!
Rob
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The underlying problem turned out to be a malformed column. The columnName did not in fact match the actual columnName (it was set to be the header text). This problem was hidden because the format specified a Html.ActionLink.
Changing the column definition such that the columnName was correct (and the header set to the actual header value) corrected the problem.