# Selection

This topic covers the selection feature in flexpivot slicer.

## Content

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](/componentone/api/win/online-flexpivot/dotnet-framework-api/C1.Win.FlexPivot.Slicer.4.8/C1.Win.FlexPivot.C1FlexPivotSlicer.MultiSelect.html) property of the [C1FlexPivotSlicer](/componentone/api/win/online-flexpivot/dotnet-framework-api/C1.Win.FlexPivot.Slicer.4.8/C1.Win.FlexPivot.C1FlexPivotSlicer.html) class.

Use the following code snippet to use the MultiSelect property.

```vbnet
'Allows users to select multiple items from the list
c1FlexPivotSlicer.MultiSelect = True
```

```csharp
//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](/componentone/api/win/online-flexpivot/dotnet-framework-api/C1.Win.FlexPivot.Slicer.4.8/C1.Win.FlexPivot.C1FlexPivotSlicer.ShowSelectAll.html) property of the C1FlexPivotSlicer class.

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

```vbnet
'Displays the Select All checkbox at the top of the list
c1FlexPivotSlicer.ShowSelectAll = True
```

```csharp
//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](/componentone/api/win/online-flexpivot/dotnet-framework-api/C1.Win.FlexPivot.Slicer.4.8/C1.Win.FlexPivot.C1FlexPivotSlicer.ShowCheckBoxes.html) property of the C1FlexPivotSlicer class as shown in the following code.

```vbnet
'Displays checkboxes next to each item in the list
c1FlexPivotSlicer.ShowCheckBoxes = True
```

```csharp
//Displays checkboxes next to each item in the list
c1FlexPivotSlicer.ShowCheckBoxes = true;
```

## See Also

[Data Binding](/componentone/docs/win/online-flexpivot/features/flexpivotsliceroverview/databinding)