FlexPivot for WinForms
選択
FlexPivotSlicer の概要 > 選択

Once the FlexPivotSlicer control is bound to a field to be filtered, it displays all the unique values of that field in a list. You can then simply select the field values from that list, to filter the FlexPivotGrid/FlexPivotChart data accordingly. By default, the user is allowed to select only one value from the list of field values. However, you can allow multiple selection of items by using MultiSelect property of the C1FlexPivotSlicer class.

Use the following code snippet to use the MultiSelect property.

'リストから複数のアイテムを選択できるようにします
c1FlexPivotSlicer.MultiSelect = True
//リストから複数のアイテムを選択できるようにします
c1FlexPivotSlicer.MultiSelect =true;

When multiple selection is enabled in the list or when MultiSelect property of the C1FlexPivotSlicer is set to true, the FlexPivotSlicer control shows a Select All/Unselect All checkbox at the top of the list allowing you to select/unselect all list items at once. However, you can choose to display or hide the Select All/Unselect All checkbox using the ShowSelectAll property of the C1FlexPivotSlicer class.

The following code shows how to display the Select All check box using the ShowSelectAll property.

'リストの上部に[すべて選択]チェックボックスを表示します
c1FlexPivotSlicer.ShowSelectAll = True
//リストの上部に[すべて選択]チェックボックスを表示します
c1FlexPivotSlicer.ShowSelectAll = true;

By default, checkboxes are not shown next to the items in the list. However, you can customize the FlexPivotSlicer control to show checkboxes next to each item in the list using ShowCheckBoxes property of the C1FlexPivotSlicer class as shown in the following code.

'リストの各項目の横にチェックボックスを表示します
c1FlexPivotSlicer.ShowCheckBoxes = True
//リストの各項目の横にチェックボックスを表示します
c1FlexPivotSlicer.ShowCheckBoxes = true;
関連トピック