0
kicks
WPF TreeView
I am always fan of TreeView from classic VB days. It is a great control to display hierarchically organized data. But earlier days in VB 6 the TreeView has to be populated by adding nodes through looping. Then in the ASP.Net I had some how improved support by using XML to transform the Dataset to TreeView binding.
HierarchicalDataTemplate in mapping data
TreeView to understand which Node level has to be bound with which level of table in the Dataset we need HierarchicalDataTemplate. It will work if the dataset given is the Relational Database with proper relationships added. And give a name that describes the relationships well. Add a TextBlock for displaying the header table information. In this article we refer categories as the Header. Remember to provide a unique Key for the object.
ItemsSource in HierarchicalDataTemplate
The given relationship name can be specified here as {Binding RelationshipName}