# Use MultiSelect Control

## Content

MultiSelect allows you to add, remove, and access specific items with minimal code. It also lets you display or hide the check boxes and dropdown button appearing in the control. Learn how they can be implemented.

* [Add an item](/componentone/docs/wpf/online-multiselect/usingmultiselectcontrol#add-an-item)
* [Edit an item](/componentone/docs/wpf/online-multiselect/usingmultiselectcontrol#edit-an-item)
* [Remove an Item](/componentone/docs/wpf/online-multiselect/usingmultiselectcontrol#remove-an-item)
* [Access specific item](/componentone/docs/wpf/online-multiselect/usingmultiselectcontrol#access-specific-item)
* [Show/Hide check boxes](/componentone/docs/wpf/online-multiselect/usingmultiselectcontrol#showhide-check-boxes)
* [Show/Hide dropdown button](/componentone/docs/wpf/online-multiselect/usingmultiselectcontrol#showhide-dropdown-button)

### Add an item

To add items to the MultiSelect control, use **Add** method of ItemCollection class as shown in the following code. For example, the following code adds “Edward” in dropdown list of the MultiSelect control:

```vbnet
mselect.Items.Add("Edward")
```

```csharp
mselect.Items.Add("Edward");
```

MultiSelect also allows you to add an item at a specific position using **Insert** method of ItemCollection class and specify an index value for the new item in it. For example, the following code inserts a name, Robert, to the second position, adjusting the position of the other items in the dropdown list:

```vbnet
mselect.Items.Insert(1, "Robert")
```

```csharp
mselect.Items.Insert(1, "Robert");
```

### Edit an item

MultiSelect provides you an option to allow or restrict a user to edit tags in the control header through [IsTagEditable](/componentone/api/wpf/online-multiselect/dotnet-framework-api/C1.WPF.Input.4.6.2/C1.WPF.Input.C1MultiSelect.IsTagEditable.html) property.

```vbnet
mselect.IsTagEditable = False
```

```csharp
mselect.IsTagEditable = false;
```

### Remove an item

MultiSelect lets you delete an item from the list using **RemoveAt** method of ItemCollection class as shown in the following code. The method takes one argument, index, which specifies the item to remove. For example, the following code deletes sixth entry from the list.

```vbnet
mselect.Items.RemoveAt(1)
```

```csharp
mselect.Items.RemoveAt(1);
```

MultiSelect also allows you to delete a selected item from the MultiSelect control using **Remove** method as shown in the following code:

```vbnet
mselect.Items.Remove(mselect.SelectedItem)
```

```csharp
mselect.Items.Remove(mselect.SelectedItem);
```

To remove all the entries from the list, use **Clear** method as shown in the following code:

```vbnet
mselect.Items.Clear()
```

```csharp
mselect.Items.Clear();
```

### Access specific item

To access and change a specific item from the MultiSelect control dropdown list, use [Items](/componentone/api/wpf/online-multiselect/dotnet-framework-api/C1.WPF.Input.4.6.2/C1.WPF.Input.C1MultiSelect.Items.html) property of [C1MultiSelect](/componentone/api/wpf/online-multiselect/dotnet-framework-api/C1.WPF.Input.4.6.2/C1.WPF.Input.C1MultiSelect.html) class and specify the index of that item. For example, to access and change the value of second item from the list, write the following line of code:

```vbnet
mselect.Items[1] = "Jake"
```

```csharp
mselect.Items[1] = "Jake";
```

### Show/Hide check boxes

By default, list of items in the MultiSelect control are displayed with check boxes. However, you can disable the default style by setting [ShowCheckBoxes](/componentone/api/wpf/online-multiselect/dotnet-framework-api/C1.WPF.Input.4.6.2/C1.WPF.Input.C1MultiSelect.ShowCheckBoxes.html) property to **false**.
![Check Boxes MultiSelect WPF Control](https://cdn.mescius.io/document-site-files/images/99afa047-a77d-4af7-8372-ed07e7b3fd19/images/hiddencheckboxes.png)
To hide the check boxes from the list, use the following code:

```vbnet
mselect.ShowCheckBoxes = False
```

```csharp
mselect.ShowCheckBoxes = false;
```

### Show/Hide dropdown button

MultiSelect displays the dropdown button to show the list of available items. However, you can hide the dropdown button in the control by setting [ShowDropDownButton](/componentone/api/wpf/online-multiselect/dotnet-framework-api/C1.WPF.Input.4.6.2/C1.WPF.Input.C1MultiSelect.ShowDropDownButton.html) property to **false**.
![Show/Hide Buttons MultiSelect WPF Control](https://cdn.mescius.io/document-site-files/images/99afa047-a77d-4af7-8372-ed07e7b3fd19/images/hiddendropdownbutton.png)
To hide the drop down button, use the following code:

```vbnet
mselect.ShowDropDownButton = False
```

```csharp
mselect.ShowDropDownButton = false;
```