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
110
Binding to Parent/Child in a Database
posted

I am trying to display a simple parent/child treeview by reading the parent and child from a database. Do you have an example of reading from a database (i.e Northwind db Customer/Orders) and displaying that in a XamTree? 

The data would come back from the database as

  • customer1   Order1
  • customer1   Order2
  • customer2   Order3
  • customer2   Order4

From other examples I have seen it seems I need to take that data and reformat it before binding to the xamtree. I have spent all day on this so an example would be great.

Thanks, Ken