Is there any way to include the Column Group as part of the auto resize. If the auto sized column widths are less than the corresponding group header, the group header is truncated.
Is there any way to handle this? Thanks.
Ron
Okay. I got the headers to auto resize the height by setting the band.Override.WrapHeaderText = true. Thanks.
I got this to work by jumping thru some hoops. This condition, at least for now, only occurs when I have 1 column in the group and that column's caption is empty because it's the same as the group caption. So when the grid is rebuilding and this condition occurs: 1. Save the fontdata of the column header; 2. Set the column fontdata to the group font data;
3. Set the column caption to the group caption; 4. Resize the column; 5. Reapply the column's original caption and fontdata.
Now I have another issue. Some column header captions are split into multiple lines. Single line works; 2 lines work; but a 3 line caption only shows 2 lines, not the bottom line.
I don't have any setting for the band.ColHeadersLines. Is this the only way to handle that? I thought the height would auto size.
Hi Ron,
The PerformAutoSize functionality never takes into account the group header. This is not something that comes up very often, since typically the columns are wider than the group.
What's your RowLayoutStyle?
The UltraGridGroup doesn't have any kind of minimum width that I could find, but if you are using RowLayoutStyle.GroupLayout, then you might be able to enforce a minimum width on the group header. GroupLayout and Fixed headers are mutually exclusive, though. So if you are using fixed headers, this is not a good solution.