Back to Devexpress

GridCommands.DeleteFocusedRow Property

wpf-devexpress-dot-xpf-dot-grid-dot-gridcommands-c440c9d2.md

latest2.3 KB
Original Source

GridCommands.DeleteFocusedRow Property

Deletes the focused data row or card.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public static RoutedCommand DeleteFocusedRow { get; }
vb
Public Shared ReadOnly Property DeleteFocusedRow As RoutedCommand

Property Value

TypeDescription
RoutedCommand

A RoutedCommand object that defines a command implementing the ICommand, and is routed through the element tree.

|

Remarks

Corresponding method: GridViewBase.DeleteRow.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DeleteFocusedRow 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-add-and-remove-rows-in-code/CS/AddRemoveRows/MainWindow.xaml#L25

xml
<dxg:TableView.RowCellMenuCustomizations>
    <dxb:BarButtonItem Content="Delete" Command="{x:Static dxg:GridCommands.DeleteFocusedRow}"/>
</dxg:TableView.RowCellMenuCustomizations>

See Also

GridCommands Class

GridCommands Members

DevExpress.Xpf.Grid Namespace