GridViewBatchEditSettings.KeepChangesOnCallbacks Property
Specifies whether the grid keeps changes made in batch edit mode on callbacks.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v19.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 Controls and MVC Extensions | ASPxGridViewEditingSettings |
|
MVCxGridViewEditingSettings |
|
|
ASP.NET Bootstrap Controls | BootstrapGridViewEditingSettings |
|
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.