A newer version of this page is available. Switch to the current version.

ComboBoxEditSettings Class

Contains settings specific to the ComboBoxEdit editor.

Namespace: DevExpress.Xpf.Editors.Settings

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

Declaration

public class ComboBoxEditSettings :
    LookUpEditSettingsBase,
    IItemsProviderOwner

Remarks

DevExpress container controls (GridControl, TreeListControl, and so on) use DevExpress WPF Editors to edit data they display. Each editor has a helper class (a BaseEditSettings descendant) that is responsible for the editor’s functionality. When the same editor is used in multiple locations, a container control uses this helper class to paint its cells. The actual editors are only created when users start to edit, and are automatically deleted when editing is completed.

Refer to the Assign Editors to Cells topic for more information.

For detailed information on combo-box editors, see ComboBoxEdit.

Example

The code sample below demonstrates how to embed a combo-box edit into the GridControl’s column.

<dxg:GridControl ItemsSource="{Binding Customers}">
    <dxg:GridControl.Columns>
        <dxg:GridColumn FieldName="Name"/>
        <dxg:GridColumn FieldName="City">
            <dxg:GridColumn.EditSettings>
                <dxe:ComboBoxEditSettings ItemsSource="{Binding Cities}"/>
            </dxg:GridColumn.EditSettings>
        </dxg:GridColumn>
        <dxg:GridColumn FieldName="Birthday"/>
    </dxg:GridControl.Columns>
    <dxg:GridControl.View>
        <dxg:TableView/>
    </dxg:GridControl.View>
</dxg:GridControl>
See Also