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

PropertyDefinition.EditSettings Property

Gets or sets an object that specifies the cell editor for the current property definition. This is a dependency property.

Namespace: DevExpress.Xpf.PropertyGrid

Assembly: DevExpress.Xpf.PropertyGrid.v18.2.dll


public BaseEditSettings EditSettings { get; set; }

Property Value

Type Description

A BaseEditSettings descendant that specifies the cell editor.


Cell values are edited using editors that ship with the WPF Data Editors. Each editor has a helper class (the BaseEditSettings descendant), responsible for the editor’s functionality. When the same editor is used in multiple locations, the property grid uses this helper class to paint its cells. The actual editors are only created when end-users start to edit a cell and are automatically destroyed when editing is completed.

Use the EditSettings property to assign the required editor. By default, PropertyGridControl automatically assigns editors to the edit fields based on the corresponding property type. To learn more, see Property Definitions.

The following example demonstrates how to assign editors to property grid rows based on the property path and type.

<dxprg:PropertyGridControl SelectedObject="{Binding Data}" ShowProperties="All">
    <dxprg:PropertyDefinition Path="ID" IsReadOnly="True"/>
    <dxprg:PropertyDefinition Type="sys:DateTime">
            <dxe:DateEditSettings DisplayFormat="MMM-dd-yyyy"/>
    <dxprg:PropertyDefinition Type="sys:String">
            <dxe:TextEditSettings MaxLength="15"/>
See Also