Dear all,
I have the ultragrid with fields : How can I group by ProductName and Sold Qty with merging the Cells.
I want to be this:
Do I need to specify the columns name or row number???
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridOverride ov = layout.Override; ov.MergedCellStyle = MergedCellStyle.OnlyWhenSorted; ov.MergedCellAppearance.TextVAlign = VAlign.Top; }
Use the UltraGrid.DisplayLayout.Override.MergedCellStyle property.