wpf-devexpress-dot-xpf-dot-grid-dot-gridcommands-c440c9d2.md
Deletes the focused data row or card.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public static RoutedCommand DeleteFocusedRow { get; }
Public Shared ReadOnly Property DeleteFocusedRow As RoutedCommand
| Type | Description |
|---|---|
| RoutedCommand |
A RoutedCommand object that defines a command implementing the ICommand, and is routed through the element tree.
|
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
<dxg:TableView.RowCellMenuCustomizations>
<dxb:BarButtonItem Content="Delete" Command="{x:Static dxg:GridCommands.DeleteFocusedRow}"/>
</dxg:TableView.RowCellMenuCustomizations>
See Also