I am using the Aspose.Cells.GridWeb (version 20.3.8) component and came across an issue with the VerticalAlign property of the cells’ style. It seems to be ignored.
I set the style in the following way:
GridTableItemStyle st = new GridTableItemStyle(); st.VerticalAlign = VerticalAlign.Middle; st.Height = new Unit(100, UnitType.Percentage); grid.ActiveSheet.Cells.SetRowHeightPixel(0, 50); grid.ActiveSheet.Cells.SetStyle(0, 0, 1, 10, st);
But the cell’s content is always displayed on top:
image.png (2.2 KB)
I also tried using the CssClass property with the vertical align defined on the Css but I obtained the same result. Setting the style using the Style property of the cell also does not help.
Here is a sample project with this problem: Sample Project
Something strange I notice is that, if I set the EditMode property of the grid to true, the content is initially displayed on top, but after clicking a cell it moves to the middle.
I appreciate any help you could offer.