Skip to main content
A newer version of this page is available. .
Tab

ASPxGridBehaviorSettings.ConfirmDelete Property

Specifies whether the Confirm Delete window is displayed before a data item (row, card, or record) is deleted.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll

Declaration

[DefaultValue(false)]
public bool ConfirmDelete { get; set; }

Property Value

Type Default Description
Boolean **false**

true, to display the Confirm Delete window; otherwise, false.

Property Paths

You can access this nested property as listed below:

Show 16 property paths
Library Object Type Path to ConfirmDelete
ASP.NET Controls and MVC Extensions ASPxCardView
.SettingsBehavior.ConfirmDelete
ASPxGridView
.SettingsBehavior.ConfirmDelete
ASPxVerticalGrid
.SettingsBehavior.ConfirmDelete
GridViewProperties
.SettingsBehavior.ConfirmDelete
CardViewSettings
.SettingsBehavior.ConfirmDelete
CardViewSettings<CardType>
.SettingsBehavior.ConfirmDelete
GridViewSettings
.SettingsBehavior.ConfirmDelete
GridViewSettings<RowType>
.SettingsBehavior.ConfirmDelete
MVCxCardView
.SettingsBehavior.ConfirmDelete
MVCxGridView
.SettingsBehavior.ConfirmDelete
MVCxGridViewProperties
.SettingsBehavior.ConfirmDelete
MVCxVerticalGrid
.SettingsBehavior.ConfirmDelete
VerticalGridSettings
.SettingsBehavior.ConfirmDelete
VerticalGridSettings<ColumnType>
.SettingsBehavior.ConfirmDelete
ASP.NET Bootstrap Controls BootstrapCardView
.SettingsBehavior.ConfirmDelete
BootstrapGridView
.SettingsBehavior.ConfirmDelete

Remarks

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.

ConfirmDelete

<dx:ASPxGridView runat="server" ID="Grid" Width="100%" EnableRowsCache="false" DataSourceID="DemoDataSource1" KeyFieldName="ProductID"
        OnFillContextMenuItems="Grid_FillContextMenuItems" 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