Hello,
I use group by Mode in WinGrid (Infragistics 8.3)
I need to group by records accroding to column A but I neeed to sort them by the summary value of column B when I click on the header of column B.
I have created my own Groub By Comparer but I do not manage to enter in it when click on the header of a column. It is the same problem after overriding the HeaderClickAction of this column with SortSingle or SortMulti..
The problem is I cannot manage to enter in the GroupByComparer of my column. How can I do that ?
(In fact I enter in the GroupByComparer only ath the loading on my group By Rows in the method Infragistics2.Win.UltraWinGrid.v8.3.dll!Infragistics.Win.UltraWinGrid.RowsCollection.InitGroupByRows() + 0x16a bytes )
How can I enter in this InitGroupByRows method I click on the Header of a column ?
Thx
When you click on a header, the GroupByComparer isn't used as this is only utilized when peforming the actual grouping. You would need to implement the IComparer interface and set it on the SortComparer property of the column.
-Matt
In fact I have also defined a SortComparer but I cannot enter in it when i am in group by mode.
I have tried several header click action mode and it is always the same thing. I manage to enter in my own comparers only when the group by is build.
Do you know a way to enter in the compare Method of a SortComprarer/groupbycomparer ? ( I could use it in the BeforeSortChange of my grid )