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.
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.
Is this supposed to happen? Is there a different way to keep sorting by display member?
' create location combo box columncol = grdPurchases.Columns("location_id")col.DataSource = locations ' DataGrid with "id" and "name" columns
col.DisplayMember = "name"col.ValueMember = "id"col.DisplayMemberSort = True' create default groupingsDim locationDescriptor As New GroupDescriptor()locationDescriptor.GroupNames.Add("location_id", System.ComponentModel.ListSortDirection.Ascending)grdPurchases.GroupDescriptors.Add(locationDescriptor)