Sorting Grouped GridViewComboBoxColumn

4 posts, 0 answers
  1. Colin
    Colin avatar
    3 posts
    Member since:
    Jun 2013

    Posted 05 Jul 2013 Link to this post

    I have combobox column that is populated with id's and set up to show the given name as a display member. I also set DisplayMemberSort to true.
    ' create location combo box column
    col = grdPurchases.Columns("location_id")
    col.DataSource = locations ' DataGrid with "id" and "name" columns
    col.DisplayMember = "name"
    col.ValueMember = "id"
    col.DisplayMemberSort = True
    This works great and sorting the column sorts by display member and not value member like it should. But when I group by this column it seems to revert back to sorting by value member when sorting the groups.
    ' create default groupings
    Dim locationDescriptor As New GroupDescriptor()
    locationDescriptor.GroupNames.Add("location_id", System.ComponentModel.ListSortDirection.Ascending)
    grdPurchases.GroupDescriptors.Add(locationDescriptor)
    Is this supposed to happen? Is there a different way to keep sorting by display member?
  2. Stefan
    Admin
    Stefan avatar
    2911 posts

    Posted 11 Jul 2013 Link to this post

    Hello Colin,

    Thank you for writing.

    I can confirm that the DisplayMemberSort property is not taken under consideration when sorting grouped columns. I have added this case in our 
    Public Issue Tracking System and we will address it accordingly for the upcoming Service Pack, due in the beginning of August. I hope that this time frame is suitable for your needs. Here is a link to the item: http://www.telerik.com/support/pits.aspx#/public/winforms/15346.

    Your Telerik Points have been updated for this report.

    Should you have any other questions or suggestions, do not hesitate to contact us.

    Regards,
    Stefan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. rent
    rent avatar
    36 posts
    Member since:
    May 2008

    Posted 08 Oct 2013 Link to this post

    When will be fixed?
  4. Stefan
    Admin
    Stefan avatar
    2911 posts

    Posted 11 Oct 2013 Link to this post

    Hello Rent,

    For the time being, we do not have any particular time frame for this. You can add your vote for it in order to increase its priority.

    Regards,
    Stefan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top