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
|
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!
|
Rank: Newbie Groups: Member
Joined: 1/31/2014 Posts: 2
|
thank u! it works
|