MultiColumn sort

5 posts, 0 answers
  1. Gourangi
    Gourangi avatar
    83 posts
    Member since:
    Mar 2008

    Posted 07 Feb 2009 Link to this post

    Hi,

    How can I implement Multi Column sorting in GridView. Means is there any property/method to achieve this requirement !

    Regards,
    Divyesh Chapaneri
  2. Nils
    Nils avatar
    12 posts
    Member since:
    Sep 2008

    Posted 07 Feb 2009 Link to this post

    Hi Divyesh Chapaneri,

    it is explained in the documentation (http://www.telerik.com/help/winforms/grid_multi-column-sorting.html). Set GridViewTemplate.AllowMultiColumnSorting to true and add all needed SortExpressions to the GridViewTemplate.SortExpressions collection.

    Kind regards,
    Nils Hommen


  3. UI for WinForms is Visual Studio 2017 Ready
  4. Gourangi
    Gourangi avatar
    83 posts
    Member since:
    Mar 2008

    Posted 09 Feb 2009 Link to this post

    There is no property like grd.GridViewTemplate.AllowMultiColumnSorting or grd.MasterGridViewTemplate.AllowMultiColumnSorting !

    I am using RadControls for WinForms Q3 2008 SP2

    Regards,
    Divyesh
  5. Nils
    Nils avatar
    12 posts
    Member since:
    Sep 2008

    Posted 09 Feb 2009 Link to this post

    In reference to http://www.telerik.com/community/forums/winforms/gridview/can-not-find-mastergridviewtemplate-allowmulticolumnsorting-property.aspx it seems that the documentation is outdatet. The property was moved to the SortExpressions-Collection:
    radGridView1.MasterGridViewTemplate.SortExpressions.AllowMultiColumnSorting = false 

    Kind regards,
    Nils
  6. Nick
    Admin
    Nick avatar
    767 posts

    Posted 09 Feb 2009 Link to this post

    Hi Divyesh Chapaneri,

    Thank you for your question. This property no longer exists, but by default multi-column sorting is enabled. In order to use it, please use the Shift + mouse click on the header row to perform the second sorting. I have updated our help and the change will be soon visible.

    Do not hesitate to write me back if you have more questions.

    Best wishes,
    Nick
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top
UI for WinForms is Visual Studio 2017 Ready