Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
unable to merge cells using the Infragistics UltraGrid version 19.2

I would like to apply merging to all cells in the UltraGrid and they will merge when their values match except for the date column and have lines between separators lines. 

(Please refer to the below screenshot, this is how I would want to achieve)


Tried with the below statements but couldn't able to achieve what I want,

//ultraGrid1:DisplayLayout:Bands[0]:Columns[0]:MergedCellStyle = MergedCellStyle:Always.
//ultraGrid1:DisplayLayout:Override:MergedCellStyle = MergedCellStyle:always.
//UltraGrid1:DisplayLayout:Bands[0]:Columns[0]:MergedCellEvaluationType = MergedCellEvaluationType:MergeSameText.
// ultraGrid1:rows[vcount - 1]:Cells[i]:Appearance:BorderColor = System.Drawing.Color:transparent.
//ultraGrid1:rows[vcount - 1]:RowSpacingAfter=0.
//ultraGrid1:DisplayLayout:Override:MergedCellStyle = Infragistics.Win.UltraWinGrid.MergedCellStyle:Never.
//ultraGrid1:DisplayLayout:Override:MergedCellStyle = Infragistics.Win.UltraWinGrid.MergedCellStyle:OnlyWhenSorted.
//ultraGrid1:DisplayLayout:Override:MergedCellContentArea = Infragistics.Win.UltraWinGrid.MergedCellContentArea:VirtualRect.

Any suggestions/advice will be greatly appreciated. Thanks in advance!

  • 28945
    Offline posted

    Hello and thank you for contacting Infragistics. In order to have a column opt-out of merging cells you have to set the MergedCellStyle for the Date column to "Never". This won't impact other columns.


    UltraGrid.DisplayLayout.Bands[0].Columns["Your Date Column"].MergedCellStyle = MergedCellStyle.Never;