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

TableView.CellMerge Event

Provides the ability to customize the cell merging behavior.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v18.2.dll

Declaration

public event CellMergeEventHandler CellMerge

Event Data

The CellMerge event's data class is CellMergeEventArgs. The following properties provide information specific to this event:

Property Description
CellValue1 Gets the value of the first cell processed by the TableView.CellMerge event handler.
CellValue2 Gets the value of the second cell processed by the TableView.CellMerge event handler.
Column Gets the column that contains the cells processed by the TableView.CellMerge event handler.
Handled Gets or sets whether a cell merge operation is handled and no default processing is required.
Merge Gets or sets whether the cells processed by the TableView.CellMerge event handler will be merged.
RowHandle1 Gets the row handle of the first row processed by the TableView.CellMerge event handler.
RowHandle2 Gets the row handle of the second row processed by the TableView.CellMerge event handler.

Remarks

When the view’s TableView.AllowCellMerge option is set to true, the adjacent cells in each column are merged if they have matching values.

The CellMerge event allows you to control how the cells are merged. For example, you can merge adjacent cells with different values based on custom logic.

See Also