Click here to Skip to main content
15,894,410 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
"How do you dynamically add a child node to a treeview item in C# wpf when the data source of the child node is from a sql database table
":


Thanks
Posted

1 solution

See this are some useful links :
http://wpf-4-0.blogspot.in/2013/01/treeview-dynamically-add-items-in-wpf-c.html[^]
http://www.c-sharpcorner.com/uploadfile/mahesh/treeview-in-wpf/[^]
Simplifying the WPF TreeView by Using the ViewModel Pattern[^]

What you can do is first fire the SELECT query (may be on Button Click or on specific time interval i.e using Threads) and with the desired data you can dynamically generate the nodes and how to do that, that is explained in all these links.

Good Luck :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900