Articles in this section
Category / Section

How to select the WinForms SfComboBox dropdown items programmatically?

1 min read

You can select the dropdown items programmatically by adding the items into DropDownListView.CheckedItems collection in WinForms SfComboBox control.

C#

foreach (var selectedItems in this.sfComboBox1.DropDownListView.View.Items.ToList())
{
  //Programmatically add the checked items
  this.sfComboBox1.DropDownListView.CheckedItems.Add(selectedItems);
}

Output:

Select the dropdown items programmatically

Sample: View in GitHub.

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied