How to add check box inside combobox in c#

前端 未结 3 1461
礼貌的吻别
礼貌的吻别 2021-01-17 17:27

I want to add check box inside comboBox in C#. My purpose is that the user can select multiple values from one ComboBox ( Check all and Uncheck all ).

Please Help

3条回答
  •  日久生厌
    2021-01-17 18:17

    You have to extend the ComboBox control by providing your own rendering strategy, and "manually" adding a CheckBox.

    Theses open source project are ready to use :

    http://www.codeproject.com/KB/combobox/CheckComboBox.aspx http://www.codeproject.com/KB/combobox/extending_combobox.aspx

提交回复
热议问题