Back to Devexpress

GridViewDataColumnSettings.AllowCellMerge Property

aspnet-devexpress-dot-web-dot-gridviewdatacolumnsettings-ddadb21e.md

latest2.8 KB
Original Source

GridViewDataColumnSettings.AllowCellMerge Property

Specifies if cell merging is allowed.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean AllowCellMerge { get; set; }
vb
<DefaultValue(DefaultBoolean.Default)>
Public Property AllowCellMerge As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

true, to allow cell merging; otherwise, false.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowCellMerge
GridViewDataColumn

.Settings .AllowCellMerge

|

Remarks

Set the AllowCellMerge property to true, to allow a grid to automatically merge adjacent cells with the same values in the current column. If the AllowCellMerge property is set to Default , the column’s behavior is controlled by the ASPxGridView’s ASPxGridViewBehaviorSettings.AllowCellMerge property.

Note

If the AllowCellMerge property is set to true, the GridViewStyles.AlternatingRow property is not in effect.

Online Demo

Grid - Cells Merging

See Also

Online video: ASPxGridView - Cell Merging

AllowCellMerge

CustomCellMerge

Merge Data Cells

Grid View

GridViewDataColumnSettings Class

GridViewDataColumnSettings Members

DevExpress.Web Namespace