ComponentOne FlexPivot for WinForms
FlexPivotSlicer Overview / Selection
In This Topic
    Selection
    In This Topic

    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.

    'Allows users to select multiple items from the list
    c1FlexPivotSlicer.MultiSelect = True
    
    //Allows users to select multiple items from the list
    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.

    'Displays the Select All checkbox at the top of the list
    c1FlexPivotSlicer.ShowSelectAll = True
    
    //Displays the Select All checkbox at the top of the list
    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.

    'Displays checkboxes next to each item in the list
    c1FlexPivotSlicer.ShowCheckBoxes = True
    
    //Displays checkboxes next to each item in the list
    c1FlexPivotSlicer.ShowCheckBoxes = true;
    
    See Also