ComponentOne MultiSelect for WinForms
Features / Tag Appearance
In This Topic
    Tag Appearance
    In This Topic

    MultiSelect has customizable header which, by default, displays all the items selected from the list. However, you can control this default behavior to adjust the maximum number of selected items to display in the header using MaxHeaderItems property of the C1MultiSelect class. For example, when you set the value of MaxHeaderItems property to 3, as soon as you select the fourth item, the header starts showing the total count of selected items as "4 items selected".

    The following GIF shows how the items in the header appear on setting the MaxHeaderItems property.

    Header appearing in ComponentOne MultiSelect

    To display maximum three items in the header, use the following code:

    C1MultiSelect1.MaxHeaderItems = 3
    
    c1MultiSelect1.MaxHeaderItems = 3;