Sorting of non groupable columns does not work when one column is groupable
ObjectListView - ListView on caffeine, guarana and steroids
Brought to you by:
grammarian
I have the situation that i have one groupable column and several non groupable.
clicking on the groupable column sorts all the entries according to sortorder.
clicking one of the nongroupable columns does no sorting.
debugging the problem lead me to the line causing the problem:
When i change in ObjectListView.cs at line 3658 from
OLVColumn sortColumn = parms.SortItemsByPrimaryColumn ? parms.ListView.GetColumn(0) : parms.PrimarySort;
to
OLVColumn sortColumn = parms.SortItemsByPrimaryColumn ? parms.PrimarySort : parms.ListView.GetColumn(0);
the sorting works.
I have tested this solution with non groupable and different combinations of groupable colums and it workes every time
I can't reproduce this behaviour, but this functional area's implementation has changed from v2.7 to v2.8, so it could have been the previous behaviour, but is no longer.