Skip to main content
All docs
V25.1
  • DataControlBase.DeleteKeyBehavior Property

    Gets or sets the action executed when a user presses the Delete key. This is a dependency property.

    Namespace: DevExpress.Xpf.Grid

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

    NuGet Package: DevExpress.Wpf.Grid.Core

    Declaration

    public DeleteKeyBehavior DeleteKeyBehavior { get; set; }

    Property Value

    Type Default Description
    DeleteKeyBehavior None

    The action executed when a user presses the Delete key.

    Available values:

    Name Description
    None

    No action.

    DeleteSelectedRows

    Executes the DeleteSelectedRows command.

    DeleteFocusedRow

    Executes the DeleteFocusedRow command.

    Remarks

    You can switch between two Delete key modes:

    Refer to the following help topic for more information: Add and Remove Rows.

    See Also