Hi,
From help:
The text of a node in the TreeView control can be in one of two modes: selection mode or navigation mode. By default, a node is in selection mode. To put a node into navigation mode, set the node's NavigateUrl property to a value other than an empty string (""). To put a node into selection mode, set the node's NavigateUrl property to an empty string.
So it looks like your only option is to clear the NavigateURL ?
Regards,
Viv
>I am using the NET 2.0 TreeView again for a web app.
>
>By default every node is automatically a hyperlink going to:
>
>TreeView1_SelectedNodeChanged(object sender, EventArgs e)
>
>when clicked.
>
>I need multiple choices so I added a checkbox
>
>TreeView1.Nodes[i].ShowCheckBox == true
>
>programmatically so the user can select several nodes and press [Submit].
>
>Yet every node is a hyperlink and I can't find a way to turn that off. While in development I added a simple return and a label message saying not to click and to check the box instead.
>
>Obviously a round trip and this message won't do in production.
>
>Reading ASP.NET help: "
TreeView Web Server Control Overview " I see:
>
>
"Node text is the actual text that displays on the TreeNode object. Node text can behave like a hyperlink in navigation mode, or like a button in selection mode.">
>This seems hopeful. How do you change from nav mode to selection mode? Am I missing something obvious here as I don't see it.
>
>Anhy pointers appreciated.