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:
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; }
Hi Everyone,
Are there any way that we can have Vertical Align = Center for merged cells like sample below? Thanks.
Hi,
Okay, I see. I think you might be running into the same problem described here: TextVAlign - Infragistics Forums
Hi Mike,
Sorry for the cofusing. I want to have the merged cells to have the vertical Align set to middle. (ABC and 50 is aligned with 3)
In the UltraGrid1_InitializeLayout, I used the .Override.MergedCellAppearance.TextVAlign = VAlign.Middle, but it still show ABC and 50 on the top
Any help will be greatly appreciated.
I'm a little confused by your question. I don't see anything here that appears vertically centered (or even horizontally centered). But anyway, you can use the MergedCellAppearance.TextVAlign property to align the text in a merged cell.