locked
How can I make GridView columns sortable with XmlDataSource RRS feed

  • Question

  • User-544808552 posted

    I am trying to find a way to make a GridView sortable using an XmlDataSource.  I know I can add xsl:sort to my xlst, but, I am not sure how to bind this function to a GridView sort event.  Any links would be greatly appreciated.

    Tuesday, March 8, 2011 12:18 PM

Answers

  • User-544808552 posted

    After more research it appears that the XmlDataSource and GridView do not easily allow for sorting.  I decided to switch to a GridView/ObjectDataSource approach.  Thanks Steve for the link.  So far, I am trying to avoid getting into jQuery, but, will check out that link in testing.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, March 8, 2011 5:21 PM

All replies

  • User187056398 posted

    If you're using jQuery you can use this plugin:

    http://tablesorter.com/docs/

    Tuesday, March 8, 2011 12:39 PM
  • User-544808552 posted

    After more research it appears that the XmlDataSource and GridView do not easily allow for sorting.  I decided to switch to a GridView/ObjectDataSource approach.  Thanks Steve for the link.  So far, I am trying to avoid getting into jQuery, but, will check out that link in testing.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, March 8, 2011 5:21 PM