Welcome Guest Search | Active Topics | Sign In | Register

How to align text in grid cells and headers? Options
basil
Posted: Friday, January 31, 2014 10:52:33 AM
Rank: Newbie
Groups: Member

Joined: 1/31/2014
Posts: 2
Hi
Can't find property for setting H and V - alignment in grid cells and headers
Columns are created dynamically

Thanks
eo_support
Posted: Friday, January 31, 2014 12:35:30 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

For headers, you will need to add "text-align:center" to ColumnHeaderStyle and ColumnHeaderHoverStyle. This will horizontal align the header text. For grid cell, you can add this to CellStyle.

We do not have built-in support for vertical alignment. For header, you can use a DIV to add padding top to push the text down. For example, instead of setting column header text to "header", you can set it to "<div style='padding-top:10px;'>header</div>". For grid cell, you can push down the cell contents by adding padding-top to CellStyle.

Hope this helps. Please feel free to let us know if you have any more questions.

Thanks!
basil
Posted: Friday, January 31, 2014 2:21:58 PM
Rank: Newbie
Groups: Member

Joined: 1/31/2014
Posts: 2
thank u! it works


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.