I have a RadGridView, which is bound to a QueryableCollectionView.
I want the customer to be able to take full advantage of sorting, grouping, etc. But there is a default multi-column sort I want to start them off with.
As an example, suppose each record has a ticket number, a priority, and a date. When they turn off all sorting on the grid, the rows should be sorted by ticket number. But I want the grid to start out sorted by priority and then date.
And an additional complication - the columns are dynamically created, populated in code, not in XAML. I've tried setting SortingState as I add the columns, but it doesn't seem to "stick".
I want the customer to be able to take full advantage of sorting, grouping, etc. But there is a default multi-column sort I want to start them off with.
As an example, suppose each record has a ticket number, a priority, and a date. When they turn off all sorting on the grid, the rows should be sorted by ticket number. But I want the grid to start out sorted by priority and then date.
And an additional complication - the columns are dynamically created, populated in code, not in XAML. I've tried setting SortingState as I add the columns, but it doesn't seem to "stick".