Quantcast
Viewing all articles
Browse latest Browse all 7205

How to merge grid cells

The sample illustrates the way to merge grid cells based on a custom-defined rule. To enable cell merging, it's necessary to set the GridView.OptionsView.AllowCellMerge property to true. If you don't want to merge some columns, set the GridColumn.OptionsColumn.AllowMerge property to false. A merging rule is defined using the GridView.CellMerge event.

Question Comments

Added By: Leon Zeng at: 8/22/2014 12:59:32 AM    

The handler gridView1_CellMerge is not needed. It has no affect but makes the grid very slow.

Added By: Demetrius (DevExpress Support) at: 8/22/2014 2:51:09 AM    

Hello Leon,

The gridView1_CellMerge event in this example was handled for demonstration purposes and it works as basic merging. To increase the performance, you can remove the try-catch block from the gridView1_CellMerge event handler.

If you have other questions, please ask them in a separate ticket.


Viewing all articles
Browse latest Browse all 7205

Trending Articles