I'm not having much luck having my columns automatically resized. My ultratree is freeform and I create columns and populate data on the fly. Columns are added to ColumnSet on node's Override. I tried doing ultraTree1.columnSettings.AutoFitColumns = AutoFitColumns.ResizeAllColumns; but this does nothing at all. Tried calling PerformAutoResize on columns in Node's Override ColumnSet also to no effect. Clearly I'm missing something here. Please help.
AutoFitColumns is only applicable when using the OutlookExpress ViewStyle.
http://help.infragistics.com/Help/NetAdvantage/WinForms/2009.1/CLR2.0/HTML/Infragistics2.Win.UltraWinTree.v9.1~Infragistics.Win.UltraWinTree.UltraTreeColumnSettings~AutoFitColumns.html
I am experiencing the same issue. I am using WinTree ViewStyle.FreeForm. My Infragistics version is 2007 Vol 3 .NET 2.0
I have to use ViewStyle.FreeForm and all my columns must have width size large enough to view the column rows/data.
Thanks,
Jean-Claude
// Autosize the columns foreach(object obj in this.configTree.ColumnSettings.ColumnSets.All) { UltraTreeColumnSet columnSet = (UltraTreeColumnSet)obj;
// Autosize the columns foreach (UltraTreeNodeColumn col in columnSet.Columns) { col.PerformAutoResize(); } }
I am using WinTree ViewStyle.Default. My Infragistics version is 2007 Vol 3 .NET 2.0
My columns are NOT auto resizing to display the entire cell value.
I have tried
column.PerformAutoResize(Infragistics.Win.UltraWinTree.
ColumnAutoSizeMode.AllNodes);
AND tried
columnSet.Columns[attribute.Name].PerformAutoResize(Infragistics.Win.UltraWinTree.
Please help!