Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
855
Changing the way the grid sorts and changing what triggers a sort
posted

I see the three options for "Header Click Sort Action" to be default, multi column, and single column.  Is there a way to disable sorting when single clicking?  I want to change it to sort on double click.

Is there a way of adding an absolute value sort?  The only options I see are ascending, descending, none, and disabled.

Thanks!

 -Nick

Parents
No Data
Reply
  • 575
    posted

    Question -

    Is there a way of adding an absolute value sort?  The only options I see are ascending, descending, none, and disabled.

     

    Answer - The best way to sort columns other that asc or desc is to use a custom sort comparer.  Create a new class which implemenets icomparable and on the initializelayout event of the grid / combo set column.sortcomparer property.

     http://msdn.microsoft.com/en-us/library/system.icomparable.aspx

     

     

     

Children