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

ASPxGridViewEditingSettings.Mode Property

Gets or sets a value that specifies the ASPxGridView’s editing mode.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(GridViewEditingMode.EditFormAndDisplayRow)]
public GridViewEditingMode Mode { get; set; }

Property Value

Type Default Description
GridViewEditingMode **EditFormAndDisplayRow**

A GridViewEditingMode enumeration value that specifies the ASPxGridView’s editing mode.

Available values:

Name Description
Inline

Cell values are edited within the In-Line Edit Row.

EditMode_Inline

EditForm

Cell values are edited via the Edit Form. The data row whose values are currently being edited isn’t displayed.

EditMode_EditForm

EditFormAndDisplayRow

Cell values are edited via the Edit Form. The data row whose values are currently being edited is displayed above the Edit Form.

EditMode_EditFormAndDisplay

PopupEditForm

Cell values are edited via the Popup Edit Form.

Popupeditform_editmode

Batch

Cell values are edited in the in-line editors. The changes are sent to the server only on an update (‘Save changes’) button click.

Note - the Batch Edit mode has limitations. To learn more, see the Batch Edit Mode topic.

EditMode_Batch

Property Paths

You can access this nested property as listed below:

Library Object Type Path to Mode
ASP.NET Controls and MVC Extensions ASPxGridView
GridViewProperties
ASP.NET Bootstrap Controls BootstrapGridView
ASP.NET MVC Extensions GridViewSettings
GridViewSettings<RowType>
MVCxGridView
MVCxGridViewProperties

Remarks

The ASPxGridViewEditingSettings.Mode property can be set to one of the following values.

Value

Description

Batch

Cell values are edited in the in-line editors. The changes are sent to the server only on an update (‘Save changes’) button click.

Note - the Batch Edit mode has limitations. To learn more, see the Batch Edit Mode topic.

EditMode_Batch

EditForm

Cell values are edited via the Edit Form. The data row whose values are currently being edited isn’t displayed.

EditMode_EditForm

EditFormAndDisplayRow

Cell values are edited via the Edit Form. The data row whose values are currently being edited is displayed above the Edit Form.

EditMode_EditFormAndDisplay

Inline

Cell values are edited within the In-Line Edit Row.

EditMode_Inline

PopupEditForm

Cell values are edited via the Popup Edit Form.

Popupeditform_editmode

Concept

Example

Web Forms:

<dx:ASPxGridView ID="Grid" runat="server" ...>
    <Columns>
    ...
    </Columns>
    <SettingsEditing Mode="Batch" />
</dx:ASPxGridView>

MVC:

@Html.DevExpress().GridView(settings => {
    settings.Name = "gridView";
    ...
    settings.SettingsEditing.Mode = GridViewEditingMode.Batch;
}).Bind(Model).GetHtml()

Online Demos

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Mode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also