Vertical Alignment in a List
Vertical Alignment in a List
I have a list with a RP which can expand to multiple lines depending up the content. With the other cells on a line I want the content aligned to the top of the cell (rather the centre). I can't seem to find a VerticalAligment property. I've tried CellAlignment but it doesn't do anything for me.
- Stewart Marshall
- Posts: 417
- Joined: Thu Nov 05, 2015 5:25 pm
Re: Vertical Alignment in a List
Cells in a list are basically edit controls, and as there's no vertical alignment for an edit, no such feature exists in a list either.
CellAlignment can be used to control the position of the edit within a cell. However, as per the help, "When CellSizing is FitBoth, the contents of the cell will fill the space and this property has no effect."
The solution is to change CellSizing to FitWidth. This will ensure it fits within the column correctly, with the height of the edit being governed by the CellHeight property. Then change the CellAlignment to TopCenter and you should get the effect that you're after.
Regards
CellAlignment can be used to control the position of the edit within a cell. However, as per the help, "When CellSizing is FitBoth, the contents of the cell will fill the space and this property has no effect."
The solution is to change CellSizing to FitWidth. This will ensure it fits within the column correctly, with the height of the edit being governed by the CellHeight property. Then change the CellAlignment to TopCenter and you should get the effect that you're after.
Regards
Re: Vertical Alignment in a List
Thanks, worked perfectly.