Hi All,
I'm having difficulty with getting the wrap for headers looking right with a Ultrawebgrid using Infragistics v8.2.
I've got a grid where in the code behind (initialise_layout) I set pixel widths and header captions for columns and on the grid I have Wrap="True" in the HeaderStyleDefault.
When the grid displays the header captions are wrapping and all looks fine with the exception that the header row is actually 2 rows, with the row border dividing the 2 rows running straight through the header caption text. It's like the wrapped text forces the rendering of another row to accomodate for the row height expansion.
If I change so Wrap=false the grid displays fine but the header captions are a single line with the text overflow cut off by the column widths.
So, any ideas why the Wrap property is acting so strange? Why the wrapped multi line header looks like 2 rows.
I've tried the row and frame wrap properties and changed various grid properties to no avail. The website uses the appstyleset office2007blue too and I've looked around to see if any css settings were the problem but I couldn't find anything.
Hopefully someone out there can shed some light on this.
Thanks.
I'd like to see an answer on this too. I'm facing the same problem with an ultrawebgrid (9.1) with headers set to wrap.
Aside from not wrapping to accomodate header text (some of my headers should wrap to 3 lines) w/o my specifying height explicitly (and then the style color has the edge in the middle of the header), the header height is not consistant between page loads.
I assume I'm missing something but ??
OK - I think I have this working for me.
I set TableLayout="Auto" instead of "Fixed" in DisplayLayout which seems to fix the height problem when the header text wraps.
I edited the Office_Grid_Header.JPG in my ig_res\Office2007Blue\images folder to be a solid color rather than a gradient. This got rid of the horizontal line through the middle of the header row.
Problem with TableLayout=Fixed is that you can not set StationaryMargins in DisplayLayout. This results in the header row scrolling along with the rest of the rows (scrolling out of view).
Back to the drawing board.
Sorry - meant TableLayout="Auto" - that is what you can not use StationaryMargins with.