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:
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.
Hi Everyone,
Are there any way that we can have Vertical Align = Center for merged cells like sample below? Thanks.
The code I above will apply to all columns in the grid. You can apply this to a single band by using the Override object on the band instead of the one on the DisplayLayout.
If you want to set merging on each individual column, you can do that, too.You just set the MergedCellStyle on the column.
You can, in fact, set all three. The column setting will take precedence, then the band setting, and then the DisplayLayout.