The OutlookExpress view has almost exactly what I'm looking for, but instead of clipping columns when there's not enough room, I need it to wrap the text and increase the row height to display the wrapped text.
I set the CellWrapText property to true and it displays the first part of the text with ellipses, but I can't tell if it's wrapping part of the text or just clipping it, because the node/row height doesn't change. My expectation would be (a) the text wraps to a new line when there isn't enough width, (b) the row height increases to display the wrapped text, and (c) no ellipses or clipping.
Question 1: Is it possible to wrap text in OutlookExpress mode?
Question 2: If it does support wrapping in OutlookExpress mode, how I can make the node/row height autosize to display the wrapped text?
Thanks!Jim Honeycutt
1) Yes, by setting CellWrapText.
2) No, auto-sizing nodes is not supported. You can change the node height to a specific value by setting the Override.ItemHeight property; the cell size is determined by the UltraTreeNodeColumn.LayoutInfo.PreferredCellSize property.
Hi Brian, thanks for the answer.
I'm confused though, what would be the point of wrapping text in cells if they don't autosize to let you see the wrapped text?
I'm not sure if you saw what I put in my description of the problem. The tree is in OutlookExpress mode, I am using CellWrapText, but instead of seeing cells that change in height to reflect wrapped text, I'm seeing single-height cells with ellipses.
My concern is that OutlookExpress mode might not support wrapping of text in cells.
Thanks,Jim Honeycutt
The UltraTree control does not currently support automatic vertical sizing of nodes. If you like you can visit http://devcenter.infragistics.com/Protected/RequestFeature.aspx and submit a request for the feature.
The following code sample demonstrates how to wrap cell text to a second line in the UltraTree control using the OutlookExpress ViewStyle:
treeControl.Override.ItemHeight = (treeControl.Font.Height * 2) + 1;treeControl.ColumnSettings.CellWrapText = DefaultableBoolean.True;
foreach( UltraTreeNodeColumn column in treeControl.Nodes[0].DataColumnSetResolved.Columns ){ column.LayoutInfo.PreferredCellSize = new Size(0, treeControl.Override.ItemHeight);}