Skip to main content
All docs
V24.2

GridOptionsView.MergedCellEditMode Property

Gets or sets how users can edit merged cells.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.2.dll

Declaration

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

Property Value

Type Default Description
MergedCellEditMode Default

Specifies how users can edit merged cells.

Available values:

Name Description
Default

Similar to Disabled.

Disabled

The grid does not highlight the focused merged cell and does not allow users to edit merged cells.

FocusedCell

Users can focus a cell within the merged batch and edit this cell.

VisibleCells

When a user edits a focused merged cell, all cells in the merged batch and visible on screen are modified.

Property Paths

You can access this nested property as listed below:

Object Type Path to MergedCellEditMode
GridView
.OptionsView .MergedCellEditMode

Remarks

You can use the AllowCellMerge property to merge neighboring cells with the same value in GridView and BandedGridView.

Run Demo: Cell Merging

The MergedCellEditMode property allows you to specify the way users can edit merged cells: one by one or the entire visible batch.

FocusedCell
Data Grid - Edit the Focused Merged Cell
VisibleCells
Data Grid - Edit All Merged Cells

Refer to the following help topic for more information: Cell Merging.

See Also