Back to Devexpress

ComboBoxEditSettings Class

wpf-devexpress-dot-xpf-dot-editors-dot-settings-845248f3.md

latest6.2 KB
Original Source

ComboBoxEditSettings Class

Contains settings specific to the ComboBoxEdit editor.

Namespace : DevExpress.Xpf.Editors.Settings

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public class ComboBoxEditSettings :
    LookUpEditSettingsBase,
    IItemsProviderOwner
vb
Public Class ComboBoxEditSettings
    Inherits LookUpEditSettingsBase
    Implements 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.

xaml
<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>

The following code snippets (auto-collected from DevExpress Examples) contain references to the ComboBoxEditSettings class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

how-to-bind-wpf-grid-to-data/CS/CodeBehind/XPO/InstantFeedbackMode/MainWindow.xaml#L17

xml
<dxg:GridColumn.EditSettings>
    <dxe:ComboBoxEditSettings x:Name="usersLookup" DisplayMember="Name"
                              ValueMember="Id" />

wpf-data-grid-implement-crud-operations/CS/CodeBehind/XPO/PagedAsyncSource/MainWindow.xaml#L30

xml
<dxg:GridColumn.EditSettings>
    <dxe:ComboBoxEditSettings x:Name="usersLookup" DisplayMember="Name"
                              ValueMember="Id" />

wpf-create-a-ribboncontrol/CS/RibbonControl_Ex/MainWindow.xaml#L91

xml
<dxb:BarEditItem.EditSettings>
    <dxe:ComboBoxEditSettings IsTextEditable="False" PopupMaxHeight="250"
                              ItemsSource="{dxe:EnumItemsSource EnumType={x:Type dxr:RibbonStyle}}"/>

wpf-data-grid-bind-columns-to-viewmodel-collection/CS/ColumnsSample/MainWindow.xaml#L22

xml
<dxg:GridColumn.EditSettings>
    <dxe:ComboBoxEditSettings ItemsSource="{Binding Source}"/>
</dxg:GridColumn.EditSettings>

how-to-bind-to-grpc/CS/InfiniteAsyncSource.GRPC/MainWindow.xaml#L33

xml
<dxg:GridColumn.EditSettings>
  <dxe:ComboBoxEditSettings ItemsSource="{Binding Users}" ValueMember="Id" DisplayMember="FullName" IsTextEditable="False"/>
</dxg:GridColumn.EditSettings>

Inheritance

Show 13 items

Object DispatcherObject DependencyObject ContentElement FrameworkContentElement DXFrameworkContentElement BaseEditSettings TextEditSettings ButtonEditSettings PopupBaseEditSettings LookUpEditSettingsBase ComboBoxEditSettings FontEditSettings

See Also

ComboBoxEditSettings Members

DevExpress.Xpf.Editors.Settings Namespace