Search code examples
c#winformsdevexpressxtragrid

DevExpress XtraGrid - how to disable cell merging


I'm using DevExpress XtraGrid and faced with problem. When cells in under the same column have the same values, they merge in one. But i don't need it. Here is printscreen of table: printscreen of table

There are two rows. Last two columns have merged. How can i separate these rows???


Solution

  • The cell merging feature is disabled by default in the GridView. You can disable it directly using the GridView.OptionsView.AllowCellMerge. When the View's cell merging mechanism is enabled, you can still prevent cells from being merged for individual columns, if required. Set the desired columns' OptionsColumn.AllowMerge option to false for this purpose.

    Related link: Cell Merging Overview