[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?
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. :-(
Re: TreeView stuck as link with Hand Pointer
Can you not iterate through the Nodes collection and add the style attributes to each node?
Re: TreeView stuck as link with Hand Pointer
My bad, I was setting the ForeColor instead of the BackColor.