Welcome Guest Search | Active Topics | Sign In | Register

Column format of Grid Options
Ronald
Posted: Thursday, August 28, 2008 8:31:04 AM
Rank: Member
Groups: Member

Joined: 8/21/2008
Posts: 24
Dear Support-Team!

I would like to know, if it is possible to use different alignments on the complete columns of a grid, including the header.
If I have a grid, for example, with the columns: "Text", "active" and "price", I would like to have the column "text" left-aligned, the checkbox column "active" centered and the column "price" right-aligned.
I know this can be done by the "CellStyle" property of the corresponding column. But can I change the alignments of the corresponding header, too?
Or, if not possible: Is it planned to have this feature and when will it be released?

Best regards
Ronald
eo_support
Posted: Thursday, August 28, 2008 8:36:10 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,091
Hi Ronald,

Grid column header text are HTML. So you can do this by using regular HTML. For example, instead of setting the column header text as "Price", you can set it to:

Code: HTML/ASPX
<div style="text-align:right">Price</div>


That should take care of it. Please feel free to let us know if you have any more questions.

Thanks!
Ronald
Posted: Thursday, August 28, 2008 8:51:37 AM
Rank: Member
Groups: Member

Joined: 8/21/2008
Posts: 24
Angel
This is perfect!

Thank you very much!
Ronald


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.