[]
        
(Showing Draft Content)

Selection

MultiSelect provides you with an option to select/deselect all items in the list with single selection. To enable this option, you need to set the ShowSelectAll property to true. On setting this property to true, the Select All check box appears on top of the list of items. When you deselect the Select All check box, all items in the list are deselected.

The following GIF shows the Select All and Unselect All check box appear in the MultiSelect control.

ComponentOne MultiSelect with Select or UnSelect checkboxes

To enables Select All option in the MultiSelect control, use the following code:

vbnet

C1MultiSelect1.ShowSelectAll = True

csharp

c1MultiSelect1.ShowSelectAll = true;

In addition, MultiSelect also allows you to change the caption of Select All option using SelectAllCaption property and caption of Unselect All option using UnselectAllCaption property of C1MultiSelect class.

The following GIF shows the changed caption of Select All and Unselect All options in the MultiSelect control.

ComponentOne MultiSelect with changed caption

To change the caption, use the following code:

vbnet

C1MultiSelect1.SelectAllCaption = "All Customers"
C1MultiSelect1.UnselectAllCaption = "Uncheck All"

csharp

c1MultiSelect1.SelectAllCaption = "All Customers";
c1MultiSelect1.UnselectAllCaption = "Uncheck All";