View Single Post
  #4 (permalink)  
Old August 24th, 2006, 11:12 PM
thenoseknows thenoseknows is offline
Friend of Wrox
 
Join Date: Feb 2006
Location: , , USA.
Posts: 116
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oh and if you only want to show one level, meaning only the level below the node you set as your start node in the sitemapdatasource, you need to set the MaxDataBindDepth="0" in the treeview or whatever control you decide to use.

It seems kind of funny that setting it to zero shows one level. Intuition is that the value one would show one level and so on and so forth. I guess the logic to that was probably that, you must want to show at least one level or you wouldn't be using one of these hierachical controls. So zero defaults to one level, MaxDataBindDepth="1" gives you two levels and so on.

Neil Timmerman
Programmer
Veris Consulting