Is there a way to distinguish between the acts of dragging a column into to the GroupBy area as opposed to clicking on a column header to sort. There are already existing sorted columns before either method is performed. I know in the AfterSortChange event there is ...SortedColumns[column].IsGroupByColumn, but how can I tell that the 'group by' just occurred.
RM
Hi RM,
You will have to compare the original set of SortedColumns with the new SortedColumns. I'm pretty sure the event args gives you a way to get the original ones and then you can compare them to the actual ones.
But can I differentiate between the grouping and clicking on a column header to sort? Another question - after a grouping, is the first 'GroupByRow' always selected? If so, can I turn that off but only for a grouping drag/drop?
I see now in the BeforeSortChange event, I can compare the new and old columns to check if any column IsGroupByColumn