aspnet-devexpress-dot-web-dot-aspxgridbehaviorsettings-d8d8ae13.md
Specifies whether the Confirm Delete window is displayed before a data item (row, card, or record) is deleted.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(false)]
public bool ConfirmDelete { get; set; }
<DefaultValue(False)>
Public Property ConfirmDelete As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true, to display the Confirm Delete window; otherwise, false.
|
Set the ConfirmDelete property to true to display the Confirm Delete window before a data item is deleted. This window allows an end-user to cancel the delete operation.
Use the ASPxGridTextSettings.ConfirmDelete property to specify the Confirm Delete window’s text.
<dx:ASPxGridView runat="server" ID="Grid" Width="100%" EnableRowsCache="false" DataSourceID="DemoDataSource1" KeyFieldName="ProductID"
OnContextMenuInitialize="Grid_ContextMenuInitialize" OnContextMenuItemClick="Grid_ContextMenuItemClick">
...
<SettingsBehavior ConfirmDelete="true" EnableCustomizationWindow="true" EnableRowHotTrack="true" />
<SettingsText ConfirmDelete="Are you sure you want to delete the row?" />
</dx:ASPxGridView>
For a full example, see Grid - Context Menu demo.
See Also
ASPxGridBehaviorSettings Class