C# .NET - Dropdown control with multi select option

Asked By vinod on 02-Jul-12 10:20 AM

 Hi All,

 I Have a requirement where i need to have dropdown with multi select options please tell me how do i achieve this.
one idea i have his  when you select a dropdown the list items contains checkbox whichever item you check that has to get selected please if anyone knows how to achieve this technically in windows control or infragistics control please reply to me as early as possible .

Robbe Morris replied to vinod on 02-Jul-12 10:30 AM
I do not know of a native control that supports that.  I think Telerik has one though.
Lalit M replied to vinod on 02-Jul-12 11:11 AM
You could use the System.Web.UI.WebControls.CheckBoxList control or use the System.Web.UI.WebControls.ListBox control with the SelectionMode property set to Multiple.

Fore reference:-> <http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/WebDropDown_Multiple_Selection.html>
bharti odedra replied to vinod on 02-Jul-12 10:35 PM
try this way

select multiple items from the drop-down list using checkboxes:

  1. From the Visual Studio toolbox, drag and drop an instance of WebDropDown onto the form and add items to the items collection. 
  2. To enable multiple selection on WebDropDown , you must set the EnableMultipleSelection property to true either using the Microsoft® Visual Studio® Property Window or by using the following code :

    WebDropDown1.EnableMultipleSelection = true;


  3. In order to select multiple items using checkboxes you must set the MultipleSelectionType property to Checkbox either using the Property Window or by using the following code:

    WebDropDown1.MultipleSelectionType = DropDownMultipleSelectionType.Checkbox;

  4. Save and run the application.