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.v24.2.Core.dll
NuGet Package: DevExpress.Wpf.Grid.Core
#Declaration
public DeleteKeyBehavior DeleteKeyBehavior { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Delete |
None | The action executed when a user presses the Delete key. |
Available values:
Name | Description |
---|---|
None | No action. |
Delete |
Executes the Delete |
Delete |
Executes the Delete |
#Remarks
You can switch between two Delete key modes:
- Delete the focused row (for single selection mode).
- Delete selected rows (for multiple selection mode).
Refer to the following help topic for more information: Add and Remove Rows.