private void CopyNodes( UltraTree source, UltraTree destination ){ if ( source == null || destination == null ) throw new ArgumentNullException();
destination.Nodes.Clear();
foreach ( UltraTreeNode node in source.Nodes ) { UltraTreeNode newNode = node.Clone() as UltraTreeNode; destination.Nodes.Add( newNode ); }}
node.Clone() doesnt copy the cells of the node to the newNode. Can you tell me how i can copy cells from one node to another?
-pradeep
hi all,
Solution works perfect for me. Did you setup the ultreTree.VieStyle in the same way for source and destination tree ??
Works for me with :
this.ultraTreeSource.ViewStyle = Infragistics.Win.UltraWinTree.ViewStyle.Grid;
this.ultraTreeDestination.ViewStyle = Infragistics.Win.UltraWinTree.ViewStyle.Grid;
Take care ... Piotr