Back to Devexpress

DialogEditFormBehavior.DeleteCommand Property

wpf-devexpress-dot-xpf-dot-grid-dot-dialogeditformbehavior-a8640cf6.md

latest2.3 KB
Original Source

DialogEditFormBehavior.DeleteCommand Property

Deletes selected rows from the control.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public ICommand DeleteCommand { get; }
vb
Public ReadOnly Property DeleteCommand As ICommand

Property Value

TypeDescription
ICommand

A routed command that implements the ICommand.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DeleteCommand 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-implement-crud-operations/CS/CodeBehind/EntityFramework/InstantFeedbackMode/MainWindow.xaml#L21

xml
Glyph="{dx:DXImage SvgImages/Icon Builder/Actions_Add.svg}" BarItemDisplayMode="ContentAndGlyph" />
<dxb:BarButtonItem Content="Delete (Del)" Command="{Binding DeleteCommand, ElementName=EditFormBehavior}"
                   Glyph="{dx:DXImage SvgImages/Icon Builder/Actions_Delete.svg}" BarItemDisplayMode="ContentAndGlyph" />

See Also

DialogEditFormBehavior Class

DialogEditFormBehavior Members

DevExpress.Xpf.Grid Namespace