Back to Devexpress

DataControlBase.DeleteKeyBehavior Property

wpf-devexpress-dot-xpf-dot-grid-dot-datacontrolbase-d28e6207.md

latest1.9 KB
Original Source

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.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public DeleteKeyBehavior DeleteKeyBehavior { get; set; }
vb
Public Property DeleteKeyBehavior As DeleteKeyBehavior

Property Value

TypeDefaultDescription
DeleteKeyBehaviorNone

The action executed when a user presses the Delete key.

|

Available values:

NameDescription
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

DataControlBase Class

DataControlBase Members

DevExpress.Xpf.Grid Namespace