Combo box is a text box component that allows user to type a value or choose an option from a list of predefined options. It has several out of the box features such as data binding, filtering, UI customization, accessibility, and more.
Key features are:
- Data binding: Support to bind IEnumerable type data sources.
- Auto complete: Supports different modes of auto complete actions.
- Multi selection: Support to select multiple values from drop-down list.
- Select all items: Supports choosing all items in a multi select combo box.
- Watermark: Helps to prompt user by providing additional hints about the data that should be entered into the text box.
- Tooltip: Support to show the tooltip when selecting more values in the multi select combo box.
- Styling: Supports customizing styles and appearance of the SfComboBox control.
- Pop-up resizing: Supports resizing the drop-down container using a resize gripper placed at the bottom of pop-up control.
- Accessibility: Supports various accessibility features to make applications available to wide variety of users.
- Theme: Supports several built-in Office 2016 themes.
Choose between different combobox controls
Syncfusion WinForms suite comes up with the following different combobox:
The SfComboBox textbox component allows the users to type a value or choose an option from a list of predefined options. It has several out of box features such as data binding filtering, UI customization, accessibility, and more.
The ComboBoxAdv is an advanced combobox control that provides similar object model as the framework of the combobox control with additional features. It allows the user to select multiple items and display the default text when none of the item is selected.
MultiSelectionComboBox is a type of combobox control with multiple items selection and auto suggestion capabilities. When you type a character into the text area, the control performs search operation and suggest a list of possible matching results to select.
The comboBoxAutoComplete control combines the ComboBox control with AutoComplete control for autocompletion to that instance of combobox. It can be used on a form for autocompletion of one or several edit controls (textbox and combobox).
The MultiColumnComboBox advanced combobox control has the capability to show multiple columns in the drop-down list. You can also display headers for the multiple columns.
SfComboBox vs MultiSelectionComboBox vs ComboBoxAdv
The SfComboBox, MultiSelectionComboBox, and ComboBoxAdv controls are used for the same purpose. But, the SfComboBox control offers rich set of features over ComboBoxAdv and MultiSelectionComboBox. For data binding, autocompletion, multiple items selection, UI customization, watermark text, loading custom UI control in drop-down, accessibility, etc., use SfComboBox. Comparatively, SfComboBox has all required features from the ComboBoxAdv, MultiSelectionComboBox, and ComboBoxAutoComplete controls.
The list of some specific API differences between SfComboBox, MultiSelectionComboBox, and ComboBoxAdv are as follows.
|DisplayMember||DisplayMember||DisplayMember||Displays the underlying datasource.|
|ValueMember||ValueMember||ValueMember||Used as actual value of the items.|
|DataSource||DataSource||DataSource||Displays the bounded data.|
|DropDownStyle||-||DropDownStyle||Sets the value that specifies editing style of combobox.|
|DelimiterChar||DelimiterChar||-||Separates multiple selected items in the selected combobox.|
|AutoCompleteMode||-||AutoComplete||Sets the auto complete mode for SfComboBox and functionality for ComboBoxAdv.|
|AutoCompleteSuggestMode||AutoSuggestMode||-||Sets the mode for suggesting the drop-down list of AutoComplete Suggest and SuggestAppend modes.|
|ThemeName||Style||Style||Applies visual styles.|
The list of features in SfComboBox over ComboBoxAdv and MultiSelectionComboBox are as follows.
Displays the suggestions in drop-down.
Suggest:Displays suggestion in the drop-down list.
Append:Appends the first suggestion to text.
SuggestAppend:Performs both ways.
It also provides support to
|Multiple items selection||Selects|
|Loading custom user control in dropdown||Shows the header and footer items in drop-down by enabling the|