|
Rank: Member Groups: Member
Joined: 10/4/2007 Posts: 20
|
Hi,
i dont be able to set vertical aligment of grid's row. I've try with CssText in CellStyle and other voice in "Item Style Set" -> "_default" but don't change the aligment. There is a way??
Thanks Saltris
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi,
The default alignment is to the top. If the text is in a single line, you can center align it by:
1. Set the Grid's ItemHeight to x; 2. Add "line-height:x" to Item Style Set -> _Default -> ItemStyle. You may also want to do the same to HoverStyle, SelectStyle, etc; 3. Add "vertical-align:middle" to the CellStyle;
Currently we are not aware of any way to center alignment multiple line text.
Thanks
|
|
Rank: Member Groups: Member
Joined: 10/4/2007 Posts: 20
|
Its ok only for text. I've insered an image in Static Column (Item.Cells(3).Value = "<img ... />") and image is always on top.
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
That is correct. Unfortunately we are not aware of any easy way to center align images.
|
|
Rank: Member Groups: Member
Joined: 10/4/2007 Posts: 20
|
I'll will very grateful to you if you fix it in the next release..
Very thanks Seltris
|
|