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.