donderdag 26 november 2009

Hide the root node of an ASP.NET Treeview control

When using a XmlDataSource object as the datasource of your treeview control, it can be a challenge to hide the root node of the review. (it was for me… )

I found (on this blog)that the XmlDataSource class has a property called Xpath. Assign this property the value of “/*/*” and your root node will be hidden. Pretty easy, isn’t it…

2 opmerkingen:

  1. Very useful, thanks for the information!

    Ps. For all your IT-vacancies, check out ictvacature .

  2. Geen werving en selectiebureaus, enkel werkgevers! Solliciteer dus rechtstreeks bij de werkgever. Check jouw ict vacature!