Skip to main content

ButtonEditSettings Class

Contains settings specific to the ButtonEdit editor.

Namespace: DevExpress.Xpf.Editors.Settings

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

NuGet Package: DevExpress.Wpf.Core


public class ButtonEditSettings :

The following members return ButtonEditSettings objects:


DevExpress container controls (e.g. 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 button editors, see ButtonEdit.


This example shows how to open a dialog window by clicking the default button of ButtonEdit, embedded in the WPF DXGrid control.

View Example

Imports Microsoft.VisualBasic
Imports System.Collections.Generic
Imports System.Windows
Imports System.Windows.Documents

Namespace DXGrid_DialogWindow
    ''' <summary>
    ''' Interaction logic for Window1.xaml
    ''' </summary>
    Partial Public Class Window1
        Inherits Window
        Public Sub New()
            gridControl1.DataSource = GetData()
        End Sub

        Private Function GetData() As List(Of GridDataObject)
            Dim list As New List(Of GridDataObject)()
            list.Add(New GridDataObject() With {.Value1 = "A", .Value2 = 1})
            list.Add(New GridDataObject() With {.Value1 = "B", .Value2 = 2})
            list.Add(New GridDataObject() With {.Value1 = "C", .Value2 = 3})
            Return list
        End Function
    End Class

    Public Class GridDataObject
        Private privateValue1 As String
        Public Property Value1() As String
                Return privateValue1
            End Get
            Set(ByVal value As String)
                privateValue1 = value
            End Set
        End Property
        Private privateValue2 As Integer
        Public Property Value2() As Integer
                Return privateValue2
            End Get
            Set(ByVal value As Integer)
                privateValue2 = value
            End Set
        End Property
    End Class
End Namespace

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ButtonEditSettings class.


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.

See Also