I need a way to generate the header texts in the grid as sortalbe link.
Do I need to use custom renderer to get this开发者_开发技巧 behavior?
You need to use GridSortOptions and call the .Sort(YourModel.GridSortOptions) method on the grid and then handle the OrderBy in your controller action.
See this link: http://www.jeremyskinner.co.uk/2010/03/14/mvccontrib-grid-part-6-sorting/
Thanks,
Hal
精彩评论