Skip to main content

ComboBoxEdit Class

Represents an editor that displays a list of items within a dropdown window.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v14.2.dll

#Declaration

[DXToolboxBrowsable(DXToolboxItemKind.Free)]
[DataAccessMetadata("All", SupportedProcessingModes = "Simple", EnableBindingToEnum = true)]
public class ComboBoxEdit :
    LookUpEditBase,
    ISelectorEdit,
    IBaseEdit,
    IInputElement

#Returned By

The FilterPopupEventArgs.ComboBoxEdit property returns an instance of ComboBoxEdit.

#Remarks

A ComboBoxEdit combines the functionality of a single-line text editor with a dropdown window. The dropdown displays a list of items which can be selected by the end-user. Selecting an item changes the editor's edit value.

A ComboBoxEdit holds its items within the ComboBoxEdit.Items collection. The editor can also display items from a data source specified by the LookUpEditBase.ItemsSource property.

Depending upon the type of object assigned to the BaseEdit.StyleSettings property, its popup window can be represented as a simple item list (ComboBoxStyleSettings), as a check box list with the enabled multi-selection feature (CheckedComboBoxStyleSettings), or as a radio button list (RadioComboBoxStyleSettings).

#Examples

This example shows how to create a checked combo box.

<dxe:ComboBoxEdit x:Name="combo" Width="200" Separator=";">
    <dxe:ComboBoxEdit.Items>
        <dxe:ComboBoxEditItem Content="David Miles"/>
        <dxe:ComboBoxEditItem Content="John Spor"/>
        <dxe:ComboBoxEditItem Content="Nick Jackson"/>
    </dxe:ComboBoxEdit.Items>
    <dxe:ComboBoxEdit.StyleSettings>
        <dxe:CheckedComboBoxStyleSettings/>
    </dxe:ComboBoxEdit.StyleSettings>
</dxe:ComboBoxEdit>
See Also