North American Sales: 1-800-231-8588
Global Contacts
My Account
Menu
North American Sales: 1-800-321-8588
My Account
Sign In/Register
Design & Development
Design & Develop
Best Value
Infragistics Ultimate
The complete toolkit for building high performing web, mobile and desktop apps.
Indigo.Design
Use a unified platform for visual design, UX prototyping, code generation and application development.
Web
Ignite UI for Angular
Ignite UI for JavaScript
Ignite UI for React
Ultimate UI for ASP.NET
Indigo.Design
Desktop
Ultimate UI for Windows Forms
Ultimate UI for WPF
Prototyping
Indigo.Design
Mobile
Ultimate UI for Xamarin
Ultimate UI for iOS
Ultimate UI for Android
Automated Testing Tools
Test Automation for Micro Focus UFT: Windows Forms
Test Automation for Micro Focus UFT: WPF
Test Automation for IBM RFT: Windows Forms
UX
Indigo.Design Desktop
Collaborative prototyping and remote usability testing for UX & usability professionals
Indigo.Design
A Unified Platform for Visual Design, UX Prototyping, Code Generation, and App Development
Business Intelligence
Reveal Embedded
Accelerate your time to market with powerful, beautiful dashboards into your apps
Reveal App
Empower everyone in your organization to use data to make smarter business decisions
Team Productivity
Learn & Support
Support
Help & Support Documents
Blogs
Forums
Product Ideas
Reference Applications
Customer Stories
Webinars
eBook & Whitepapers
Events
Free Trials
Pricing
Product Pricing / Buy Online
Renew Existing License
Contact Us
Forums
Ultimate UI for Windows Forms
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
Close
State
Not Answered
Replies
1 reply
Subscribers
6 subscribers
Views
278374 views
Users
0 members are here
UltraTree
Share
More
Cancel
195
Multiple databinds to a tree
Jeremy
posted
over 15 years ago
This post correlates to another posting:
http://forums.infragistics.com/forums/p/3849/19716.aspx
I have a tree that has a few unbound nodes as follows:
root (created manually)
|------------CategoryA (created manually)
|------------CategoryB (created manually)
|------------CategoryC (created manually)
I am trying to databind a bindinglist to Categories A, B and C.
My code looks like:
UltraTreeNode rootNode = new UltraTreeNode("root");
rootNode.Text = "root";
rootNode.LeftImages.Add(Properties.Resources. root);
myTree.Nodes.Add(rootNode);
UltraTreeNode CategoryA = new UltraTreeNode("CategoryA");
CategoryA.Text = "CategoryA";
CategoryA.LeftImages.Add(Properties.Resources. CategoryA);
rootNode.Nodes.Add(CategoryA);
CategoryA.Nodes.SetDataBinding(CategoryAList, "Name");
UltraTreeNode CategoryB = new UltraTreeNode("CategoryB");
CategoryB.Text = "CategoryB";
CategoryB.LeftImages.Add(Properties.Resources. CategoryB);
rootNode.Nodes.Add(CategoryB);
CategoryB.Nodes.SetDataBinding(CategoryBList, "Name");
UltraTreeNode CategoryC = new UltraTreeNode("CategoryC");
CategoryC.Text = "CategoryC";
CategoryC.LeftImages.Add(Properties.Resources. CategoryC);
rootNode.Nodes.Add(CategoryC);
CategoryC.Nodes.SetDataBinding(CategoryCList, "Name");
Now I do have items in all those lists, but for some reason its not reflecting in the tree. Is there some kind of setting I'm missing?
Jeremy
Parents
No Data
Reply
195
Jeremy
posted
over 15 years ago
I have solved this. I just set the datamember to null instead and viola!
Cancel
Reply
Cancel
Children
No Data