Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
WinTree FreeForm with Columns and more Rows
posted

Hi,
I want a FreeForm WinTree (unbound) with a "Grid" in one node.

Sample Code:

            ultraTree1.ViewStyle = ViewStyle.FreeForm;

            // Tree
            UltraTreeNode node1 = ultraTree1.Nodes.Add("1", "Node 1");
            UltraTreeNode node2 = ultraTree1.Nodes.Add("2", "Node 2");
            UltraTreeNode node3 = ultraTree1.Nodes.Add("3", "Node 3");
            UltraTreeNode node4 = node3.Nodes.Add("3-1", "Node 3-1");


            // Column Set
            UltraTreeColumnSet cs = new UltraTreeColumnSet();
            UltraTreeNodeColumn nc1 = cs.Columns.Add("C1");
            UltraTreeNodeColumn nc2 = cs.Columns.Add("C2");
            nc1.Text = "Col1";
            nc2.Text = "Col2";
           
            ultraTree1.ColumnSettings.ColumnSets.Add(cs);

            // Grid Node
            UltraTreeNode nodeGrid = node2.Nodes.Add("2-1");
            nodeGrid.Override.ColumnSet = cs;
                       
            nodeGrid.SetCellValue(nc1, "Val1");
            nodeGrid.SetCellValue(nc2, "Val2");

            // Second Row ?


How can I add a second row to  nodeGrid?

 

Thanks,

Robert