Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
# How-to-programmatically-select-all-DropDownItems-in-SfComboBox
This repository contains the sample that how to programmatically select all DropDownItems in SfComboBox
# How to Programmatically Select All DropDownItems in SfComboBox
This repository demonstrates how to programmatically select all items in the DropDown list of the Syncfusion SfComboBox control in a Windows Forms application. The SfComboBox is a powerful UI component that supports advanced features like multi-selection, auto-complete, and data binding. In scenarios where you need to select all items at once—such as applying bulk actions or initializing default selections—this sample provides a clear and practical approach.

## Key Features Demonstrated in This Sample
• Enable multi-selection mode in SfComboBox.
• Programmatically select all items in the DropDown list using the SelectedItems collection.
• Handle scenarios where the data source is dynamically loaded.
• Ensure the UI reflects the selection state immediately after applying changes.

## Steps to Select All Items Programmatically
1. Set the ComboBoxMode property to MultiSelection to allow multiple selections.
2. Access the SelectedItems property and add all items from the data source.
3. Refresh the control to update the UI.

This approach ensures that all items in the DropDown are selected without requiring manual user interaction. It is particularly useful for applications that need to apply global settings or perform batch operations.