Back to Devexpress

GridOptionsBehavior.EditingMode Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsbehavior-2a1b9f42.md

latest4.9 KB
Original Source

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.v25.2.dll

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

Declaration

csharp
[DefaultValue(GridEditingMode.Default)]
[XtraSerializableProperty]
public virtual GridEditingMode EditingMode { get; set; }
vb
<DefaultValue(GridEditingMode.Default)>
<XtraSerializableProperty>
Public Overridable Property EditingMode As GridEditingMode

Property Value

TypeDefaultDescription
GridEditingModeDefault

The mode in which a data record can be edited.

|

Available values:

NameDescription
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 TypePath 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.

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

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

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.

winforms-grid-filter-lookup-column-based-on-another-column-editform/CS/FilterLookUpsEditForm/FormSingleSource.cs#L32

csharp
gridView1.OptionsBehavior.EditingMode = GridEditingMode.EditFormInplace;
gridView1.EditFormPrepared += new EditFormPreparedEventHandler(gridView1_EditFormPrepared);

winforms-grid-filter-lookup-column-based-on-another-column-editform/VB/FilterLookUpsEditForm/FormSingleSource.vb#L31

vb
gridView1.OptionsBehavior.EditingMode = GridEditingMode.EditFormInplace
AddHandler gridView1.EditFormPrepared, AddressOf gridView1_EditFormPrepared

See Also

EditorShowMode

GridEditingMode

GridOptionsBehavior Class

GridOptionsBehavior Members

DevExpress.XtraGrid.Views.Grid Namespace