kacalapy
kacalapy

Reputation: 10164

asp.net treeview - how to remove/ hide the root node?

i have a asp.net tree view control and its being data bound to XML returned from the DB. once bound and the nodes are present in the control how can i remove/ hide the root node?

thanks!

Upvotes: 0

Views: 2538

Answers (1)

AspNetDev
AspNetDev

Reputation: 311

Set the DataSource's XPath property to /*/*, which will skip the root node.

Upvotes: 4

Related Questions