This question is locked. New answers and comments are not allowed.
Hello,
I have a RadGridView in my Silverlight application. A user may sort the items in the RadGridView. When a user clicks a button in my application, I want to cycle through the items in the RadGridView. My problem is, I want to cycle through them in the order that they are sorted by. In an attempt to do this, I decided to get the sort information like so:
From here, I'm stuck though. Am I making this too hard? Its seems like there should be an easy way to get the items in their sorted order from the RadGridView. Can someone please help me solve this problem?
Thank you very much for your help!
I have a RadGridView in my Silverlight application. A user may sort the items in the RadGridView. When a user clicks a button in my application, I want to cycle through the items in the RadGridView. My problem is, I want to cycle through them in the order that they are sorted by. In an attempt to do this, I decided to get the sort information like so:
var items = myGridView.ItemsSource; // Attempt to sort RadGridView.ItemsSource for usagestring sorters = string.Empty;foreach (ISortDescriptor descriptor in myGridView.SortDescriptors){ if (descriptor is ColumnSortDescriptor) { if (sorters .Length > 0) sorters += ", "; ColumnSortDescriptor sortDescriptor = (ColumnSortDescriptor)(descriptor); sorters += sortDescriptor.Column.SortMemberPath; }} From here, I'm stuck though. Am I making this too hard? Its seems like there should be an easy way to get the items in their sorted order from the RadGridView. Can someone please help me solve this problem?
Thank you very much for your help!