I am currently binding a Treeview to an Entity Framework objectset, which is working just fine. However I would like to organize the nodes in the treeview differently.
For example, if I bind so the root nodes represent the Students collection and the leaf nodes are that student's Subjects collection, that is just fine, but can I change the arrangement so that there are two root nodes, say Male and Female students, according
to a property of the Student, and underneath those, the leaf nodes are say Bob, Dave, Steve under the Male root. And Jane, Sheila and Gertrude under the Female root?
In other words, instead of binding to Students and a collection belonging to Students, can I set up the treeview in such a way that the root nodes are manually specified, and the leaf nodes are under the correct root based on a property of the Students?
Thanks for any advice.
View Complete Post