Skip to main content
Tab

GridViewBatchEditSettings.KeepChangesOnCallbacks Property

Specifies whether the grid keeps changes made in batch edit mode on callbacks.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.1.dll

Declaration

[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean KeepChangesOnCallbacks { get; set; }

Property Value

Type Default Description
DefaultBoolean

Default

One of the DefaultBoolean enumeration values.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to KeepChangesOnCallbacks
ASP.NET Bootstrap Controls BootstrapGridViewEditingSettings
.BatchEditSettings.KeepChangesOnCallbacks
ASP.NET MVC Extensions MVCxGridViewEditingSettings
.BatchEditSettings.KeepChangesOnCallbacks
ASP.NET Web Forms Controls ASPxGridViewEditingSettings
.BatchEditSettings.KeepChangesOnCallbacks

Remarks

<dx:ASPxGridView ID="Grid" runat="server" DataSourceID="DemoDataSource1" KeyFieldName="ProductID" EnableRowsCache="false" Width="100%">
    <Columns>
    ...
    </Columns>
    <SettingsEditing Mode="Batch" KeepChangesOnCallbacks=DefaultBoolean.True />
</dx:ASPxGridView>

If the KeepChangesOnCallbacks property is set to DefaultBoolean.Default, the control’s behavior is controlled by the BackwardCompatibilitySettings.DataControlBatchEditKeepChangesOnCallbacksDefaultValue property.

ASPxWebControl.BackwardCompatibility.DataControlBatchEditKeepChangesOnCallbacksDefaultValue  = false;

The KeepChangesOnCallbacks property also enables the grid to manage modified rows even if they are located on different pages. When the KeepChangesOnCallbacks property is set to true, the grid displays the “Preview Changes” button. Click this button to show and manage only modified rows before a user saves or cancels the changes.

ASPxGridView-ChangesPreview

Online Demo

Batch Editing and Updating

See Also