Hi,
If I sort a column in the grid, then group by that column by dragging the column header, I get the column header in the group by box and the column retains its sorting as expected. However, if I then drag that column back into the grid, it is no longer sorted.
Is this a bug or expected behaviour? How do I get the column to retain its sorting when I drag it back into the grid? I can't seem to find the events that are fired when a column is grouped or ungrouped.
Thanks.
The same question is discussed here:
SortedColumns entry gets lost when GroupBy-Column is dragged from GroupBy Area - Infragistics Community
Thanks for that - yes it was the same problem. I found a workaround using the BeforeSortChange event to store the sorting of the group by columns and AfterSortChange event to reapply those sorts when a column was no longer a group by.