This is a migrated thread and some comments may be shown as answers.

Sorting Grouped GridViewComboBoxColumn

3 Answers 120 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Colin
Top achievements
Rank 1
Colin asked on 05 Jul 2013, 05:24 PM
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?

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 11 Jul 2013, 08:43 AM
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 >>
0
rent
Top achievements
Rank 1
answered on 08 Oct 2013, 08:15 AM
When will be fixed?
0
Stefan
Telerik team
answered on 11 Oct 2013, 05:20 AM
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 >>
Tags
GridView
Asked by
Colin
Top achievements
Rank 1
Answers by
Stefan
Telerik team
rent
Top achievements
Rank 1
Share this question
or