Tab

GridViewBatchEditSettings.KeepChangesOnCallbacks Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.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

Corresponds to a Boolean value of true.

False

Corresponds to a Boolean value of false.

Default

The value is determined by the current object’s parent object setting (e.g., a control setting).

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