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)
/community/resized-image/__size/640x480/__key/communityserver-discussions-components-files/1027/pastedimage1654700555869v1.png
Tried with the below statements but couldn't able to achieve what I want,
//ultraGrid1:rows[vcount]:Cells[i]:hidden=TRUE. //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!
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.
eg.
UltraGrid.DisplayLayout.Bands[0].Columns["Your Date Column"].MergedCellStyle = MergedCellStyle.Never;