Back to Devexpress

DataViewBase.EditorButtonShowMode Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-180d97ad.md

latest2.5 KB
Original Source

DataViewBase.EditorButtonShowMode Property

Gets or sets when editor buttons are displayed within cells. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public EditorButtonShowMode EditorButtonShowMode { get; set; }
vb
Public Property EditorButtonShowMode As EditorButtonShowMode

Property Value

TypeDefaultDescription
EditorButtonShowModeShowOnlyInEditor

An EditorButtonShowMode enumeration value that specifies when editor buttons are displayed within cells.

|

Available values:

NameDescription
ShowOnlyInEditor

Displays editor buttons only when a cell editor is active.

| | ShowForFocusedCell |

Displays editor buttons only for the focused cell.

| | ShowForFocusedRow |

Displays editor buttons only for cells within the focused row.

| | ShowAlways |

Displays editor buttons for all cells within a column.

|

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

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.

wpf-data-grid-change-cell-template-based-on-custom-logic/CS/Window1.xaml#L49

xml
<dxg:GridControl.View>
    <dxg:TableView Name="view" AutoWidth="True" EditorButtonShowMode="ShowAlways" />
</dxg:GridControl.View>

See Also

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace