Welcome Guest Search | Active Topics | Sign In | Register

Web Grid - Adjust Column Header Height Options
Dave
Posted: Tuesday, April 21, 2009 2:52:25 PM
Rank: Advanced Member
Groups: Member

Joined: 4/4/2008
Posts: 46
How can I change the Height of the Column Headers to allow for text wrap of the HeaderText?

I have a column with a width of 80 and I need to change the Height of the Header so that I can fit Text that is longer.

I changed the ColumnHeaderHeight property to 40 but it does nothing. I only see the first word of the HeaderText.
Dave
Posted: Tuesday, April 21, 2009 3:02:57 PM
Rank: Advanced Member
Groups: Member

Joined: 4/4/2008
Posts: 46
I mis-spoke...

ColumnHeaderHeight is changing when I change the property to 40 but the background image doesn't fill the full height and only the first line of HeaderText is visible.
eo_support
Posted: Tuesday, April 21, 2009 3:12:59 PM
Rank: Administration
Groups: Administration

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

Please see this post for more detail:

http://www.essentialobjects.com/forum/postst3060_Grid-Cell-formatting-questions.aspx#12775

The question the other user had and our answer next to it should apply to your question as well. The only difference is he is working on grid cell, while you are working on grid header. However the solution is the same and you will also need to replace the image file.

Thanks!
Dave
Posted: Tuesday, April 21, 2009 3:38:25 PM
Rank: Advanced Member
Groups: Member

Joined: 4/4/2008
Posts: 46
I must be doing something wrong.

I doubled the size of the header image and saved it to a new file. Then I set BackGroundImage property in ColumnHeaderStyle to point to the file.

There is no change in the VS2005 designer or once I build and run the app.
Dave
Posted: Tuesday, April 21, 2009 4:00:01 PM
Rank: Advanced Member
Groups: Member

Joined: 4/4/2008
Posts: 46
I've got it fixed now... Problem was if I didn't save the aspx page before building the image was reverting to the built in.

Thanks for the help.
eo_support
Posted: Tuesday, April 21, 2009 4:16:53 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Cool. Glad that it's working for you!


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.