Version

Add Nodes to WinTree at Design Time

This topic is designed to get you up and running with an WinTree™ control on a WinForm with nodes created at Design-time.

  1. Create a new Visual Basic or C# Windows Application.

  2. The windows application project will appear, with a single Windows form visible. Select the UltraTree control in your toolbox and draw the control on the form.

  3. You should note at this point that references to Infragistics.Shared, Infragistics.Win, and Infragistics.Win.UltraWinTree have been added to the Solution Explorer window under the "References" section.

  4. Select the UltraTree on the form. In the property grid, click on the Nodes property.

Click the ellipsis button that appears.

The UltraWinTree Node Editor dialog appears.

  1. Click the Add Root button.

  2. Click into the Selected Node Label text box.

  3. Enter text for the new root node.

  4. In the Node property grid, you can set many properties of the node, including the Key .

  5. Click Add Root to add another root node.

  6. You can add as many nodes as you want and set properties for each node.

  7. If you make an error and want to remove a node, click on the node and click Delete

  8. Click OK to save the changes and exit the Node editor.