|
-
Jan 14th, 2008, 03:02 PM
#1
Thread Starter
Addicted Member
[RESOLVED] TreeView stuck as link with Hand Pointer
Hi,
I'm using the TreeView control that ships with Visual Studio 2005 in a webform.aspx page.
After I bind my data and create the parent and child nodes, it is defaulting to a link type. Example, if I hover over any node, it get the "pointer mouse icon". Instead, I want to get the "arrow mouse icon".
I want my treeview to be used just for expanding and opening up nodes, and not as a navigation device. Where I can I remove this default?
-
Jan 14th, 2008, 06:28 PM
#2
Thread Starter
Addicted Member
Re: TreeView stuck as link with Hand Pointer
Okay, so I found out that I can simply just change the BackColor of the SelectedNodeStyle (I can live with the "mouse pointer icon"), but now if I use a packaged style from the designers "auto format" feature, SelectedNodeStyle does not work. :-(
-
Jan 15th, 2008, 10:43 AM
#3
Re: TreeView stuck as link with Hand Pointer
Can you not iterate through the Nodes collection and add the style attributes to each node?
-
Jan 15th, 2008, 05:53 PM
#4
Thread Starter
Addicted Member
Re: TreeView stuck as link with Hand Pointer
My bad, I was setting the ForeColor instead of the BackColor.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|