Hi Telerik support team,
I’m strugling with the Winforms GridView GroupComparer and need some help with it. I’ve seen the topic below:
https://docs.telerik.com/devtools/winforms/controls/gridview/grouping/sorting-group-rows
In my case I’ve a generic comparer in which I want to evaluate which column needs some sorting changes. These are my unitColumns and I have a reference to its list at the moment I create the comparer.
this.radGridView1.MasterTemplate.GroupComparer = new CustomGroupComparer(list);
The problem I walk into is that Telerik creates new CustomGroupComparers by itself (I think for every group?). It also demands an empty constructor. This way I have no option to get to the list that I need.
Is there a workaround for this problem?? For this moment I defined a hardcoded List inside the customComparer but that’s not the way to program it.
It would be nice if the custom comparer was part of the GroupDescriptor.
Regards,
Daniel