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:
Sample: View in GitHub.