I have set the MergedCellStyle of the ultragrid,but after merging the data is not displayed in the center of the merged cell, How to let the data be centered in the merged cell ?
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridOverride ov = layout.Override; ov.HeaderClickAction = HeaderClickAction.SortMulti; ov.MergedCellStyle = MergedCellStyle.OnlyWhenSorted; ov.MergedCellAppearance.TextVAlign = VAlign.Middle; }
Dear Mike Saltzman :
thank you!