locked
DataGrid Column Sorting RRS feed

  • Question

  • Hello,

    I have come across yet another problem with my datagrid.
    I am trying to recognise that one of the column headers are clicked and then sort the values in ascending order, by that column.

    I need to enable this for all columns.


    Hope somebody can help!

    Many thanks in advance :)
    Wednesday, February 25, 2009 10:23 AM

Answers

  • You would need to handle click event, then do a hit test. If hit is on the header then sort data in the data source as appropriate.
    This posting is provided "AS IS" with no warranties, and confers no rights.
    • Marked as answer by warrentang Monday, March 2, 2009 6:47 AM
    Wednesday, February 25, 2009 4:58 PM