Skip to main content

ASPxGridTextSettings.ConfirmOnLosingBatchChanges Property

Specifies the text that the grid control displays within the Confirmation dialog box in batch edit mode.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.1.dll

NuGet Package: DevExpress.Web


public string ConfirmOnLosingBatchChanges { get; set; }

Property Value

Type Default Description
String String.Empty

The text.


The grid control displays the Confirmation dialog box in the following cases:

  • A user reloads or leaves the page.

    Grid.BatchEditMode - ConfirmOnLeavingSite

  • On callbacks and postbacks. Note that ASPxGridView shows the Confirmation dialog box on callbacks when the KeepChangesOnCallbacks property is disabled.

    Grid.BatchEditMode - ConfirmationMessage


The grid control does not show the Confirmation dialog box after you call the Refresh method.

The ConfirmOnLosingBatchChanges property allows you to customize the Confirmation dialog text.

<dx:ASPxGridView ID="ASPxGridView1" runat="server" KeyFieldName="ProductID">
    <SettingsEditing Mode="Batch" />
    <SettingsText ConfirmOnLosingBatchChanges="Custom Confirmation Text" />

To disable the Confirmation dialog box, use one of the following options:

For more information on batch edit mode in a particular control, refer to the following topics:


  • For security reasons, browsers display the default Confirmation dialog text when a user leaves the page. For more information, refer to the following topic: BeforeUnloadEvent.
See Also