Custom Sorting on Substring of Data

2 posts, 0 answers
  1. Terry
    Terry avatar
    39 posts
    Member since:
    Sep 2007

    Posted 14 Mar 2013 Link to this post

    Hello,

    Can somebody point out how I might set a custom sort order on a column with following data:-

    A/101
    B/100
    C/102
    D/103
    E/99
    F/75
    F/70
    F/35

    I want to be able to sort on just the numeric part and ignore the first two characters ie "A/"

    Anybody got any ideas?

    Many thanks

    Terry

  2. Stefan
    Admin
    Stefan avatar
    2911 posts

    Posted 19 Mar 2013 Link to this post

    Hi Terry,

    Thank you for writing.

    You should use the custom sorting functionality of RadGridView to achieve your scenario: http://www.telerik.com/help/winforms/gridview-sorting-custom-sorting.html.

    I hope that you find this information useful.

    Regards,
    Stefan
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Back to Top