Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    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