ComponentOne MultiSelect for WinForms
Features / Selection
In This Topic
    Selection
    In This Topic

    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:

    C1MultiSelect1.ShowSelectAll = True
    
    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:

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