FlexPivot for WinForms
ソート
FlexPivotSlicer の概要 > ソート

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 use SortOrder property of the C1FlexPivotSlicer class. The SortOrder property allows you to display the list items in ascending order, descending order or unsorted state by accepting values from the SortOrder enum.

sorting-in-action

Use the following code snippet to sort the checklist in descending order. This example uses the sample created in the Data Binding topic.

'チェックリストを降順で並べ替えます
c1FlexPivotSlicer.SortOrder = System.Data.SqlClient.SortOrder.Descending
'ヘッダーに[並べ替え]ボタンを表示します
c1FlexPivotSlicer.ShowSort = True
//チェックリストを降順で並べ替えます
c1FlexPivotSlicer.SortOrder = System.Data.SqlClient.SortOrder.Descending;
//ヘッダーに[並べ替え]ボタンを表示します
c1FlexPivotSlicer.ShowSort = true; 
関連トピック