Skip to main content

GridOptionsBehavior.EditingMode Property

Gets or sets the mode in which a data record can be edited - inplace or via a dedicated inline or popup Edit Form.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.1.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

[DefaultValue(GridEditingMode.Default)]
[XtraSerializableProperty]
public virtual GridEditingMode EditingMode { get; set; }

Property Value

Type Default Description
GridEditingMode Default

The mode in which a data record can be edited.

Available values:

Name Description
Default

The same as Inplace.

Inplace

Directly in grid cells.

EditFormInplace

In an Edit Form displayed below the row being edited.

EditFormInplaceHideCurrentRow

In an Edit Form displayed instead of the row being edited.

EditForm

In an Edit Form displayed as a modal window.

Property Paths

You can access this nested property as listed below:

Object Type Path to EditingMode
GridView
.OptionsBehavior .EditingMode

Remarks

You can set the mode in which an end-user can edit grid data via the EditingMode property of the GridEditingMode type.

  • Default and Inplace - Directly in grid cells.
  • Edit Form - In an Edit Form displayed as a modal window.

    GridOptionsBehavior_EditingMode_EditForm

  • EditFormInplace - In an Edit Form displayed below the row being edited.

    GridOptionsBehavior_EditingMode_EditFormInplace

  • EditFormInplaceHideCurrentRow - In an Edit Form displayed instead of the row being edited.

    GridOptionsBehavior_EditingMode_EditFormInplaceHideCurrent

Note

If there is insufficient space in the View to display an Edit Form as an inline panel, it is forcibly displayed as a separate modal window.

Note

Detail Views do not support an inline Edit Form. Data in these Views can only be edited inplace (in row cells), or using a popup Edit Form.

For more information, see the Modify and Validate Cell Values topic.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the EditingMode 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