WPF TreeView Binding with Dataset (vbguide.blogspot.com)
submitted by
pons_saravanan(219) 2 years, 6 months ago
TreeView is a fantastic control right from classic VB days. It is the best control to display hierarchically organized data. TreeView population by adding nodes through looping has gone. Now in the ASP.Net improved support by using XML to transform the Dataset to TreeView binding.
HierarchicalDataTemplate in mapping data
To recognize the node levels by TreeView we need HierarchicalDataTemplate. It will work if the dataset is Relational Database. And give a unique name that describes the relationships. Add a TextBlock for displaying the header table data. In this article we point categories as the Header Data.
|category: Windows Presentation Foundation
|Views: 241
tags:
WPF another
Everyones tags:
Your Tags: