ComponentOne FlexPivot for WinForms
Sorting
FlexPivotSlicer Overview > Sorting

By default, the list containing the unique field values is sorted in an ascending order. However, to sort the list items by a different order, you can make use of the SortOrder property of the C1FlexPivotSlicer class. This property accepts values such as Ascending, Descending or Unspecified from the SortOrder enum and allows you to display the list items in ascending order, descending order or unsorted state. The Change sort direction button can be displayed in the header by setting the ShowSort property of the C1FlexPivotSlicer class to true.

'Sorts the checklist in descending order
c1FlexPivotSlicer.SortOrder = System.Data.SqlClient.SortOrder.Descending
'Displays the Sort button in the header
c1FlexPivotSlicer.ShowSort = True
//Sorts the checklist in descending order
c1FlexPivotSlicer.SortOrder = System.Data.SqlClient.SortOrder.Descending;
//Displays the Sort button in the header
c1FlexPivotSlicer.ShowSort = true; 
See Also