Exemple #1
0
 public void ApplySort(ListSortDescriptionCollection sorts)
 {
     RowFilter = RowFilter.ChangeListSortDescriptionCollection(sorts);
     if (ClusteringSpec != null && sorts.Count > 0)
     {
         ClusteringSpec = ClusteringSpec.RemoveRole(ClusterRole.ROWHEADER);
     }
     // Fire an event so that the NavBar updates to show that the DataGridView is sorting
     OnListChanged(new ListChangedEventArgs(ListChangedType.Reset, -1));
 }
Exemple #2
0
 public void ApplySort(ListSortDescriptionCollection sorts)
 {
     RowFilter = RowFilter.ChangeListSortDescriptionCollection(sorts);
     // Fire an event so that the NavBar updates to show that the DataGridView is sorting
     OnListChanged(new ListChangedEventArgs(ListChangedType.Reset, -1));
 }