Hi!
I just upgraded my projects to version 2009 vol 1 and my grids appear a little different now. The width of the columns have changed. Is there anything that I should be aware of in this context? I quickly read the "What's New" page of this release but I cannot find anything related to that.
Hi,
I'm confused. Are we still talking about the same issue, or is this something different?
athanask said:1) How can i have just two rows to the wrapping of the header when AutoFitStyle = AutoFitStyle.ResizeAllColumns and PerformAutoResizeColumns(true, PerformAutoSizeType.AllRowsInBand, false) is called?
I think you are looking for ColHeaderLines or MaxColHeaderLines. But those will only work if you are not using RowLayouts, and you didn't say whether you are or not.
athanask said:2) How can i perform header word wrapping on a grid that hasDisplayLayout.AutoFitStyle = AutoFitStyle.ExtendLastColumn?
Again, it depends on whether or not you are using RowLayouts. Check the WrapHeaderText property. Or you might have to insert carraige returns into the text if you want it to break at a particular point.
grid.DisplayLayout.PerformAutoResizeColumns(true, PerformAutoSizeType.AllRowsInBand, false);
Ok column widths were fixed by calling PerformAutoResizeColumns but it is not satisfactory enough.
Any of the 2 would be optimal:
1) How can i have just two rows to the wrapping of the header when AutoFitStyle = AutoFitStyle.ResizeAllColumns and PerformAutoResizeColumns(true, PerformAutoSizeType.AllRowsInBand, false) is called?
2) How can i perform header word wrapping on a grid that hasDisplayLayout.AutoFitStyle = AutoFitStyle.ExtendLastColumn?
If you are using RowLayouts, then it's possible that this could be related to the new RowLayout groups. But it seems unlikely that this would have affected the default width of the columns.
On the other hand, I can't think of any other features that would have caused this, either. Are you sure you have not changed the code in some way?
Can you post screen shots and what exactly has changed?
You might just want to call the PerformAutoResize method on each column in the InitializeLayout event of the grid to size each column to it's contents.
Support for row layout grouping was added, which involved far-reaching changes to the row layout logic, which is what determines column widths, I suspect it has something to do with that.