Hi,

I Am trying to bind ForeColor property of a TreeNode with an object in the
node's Tag property

The idea is this .. when a certain value of the object associated with
particular node changes I need to change the color of the node.


Tree is not bound to any datasource.

Thanks,
Ron

DataBinding TreeNode and TreeView by Sol

Sol
Tue Aug 05 09:10:32 CDT 2003

I am not currently at a VS.NET PC so I can't verify this,
but I believe that this should work.

tv.DataBindings.Add("SelectedNode.ForeColor", tv, (Color)
SelectedNode.Tag);




>-----Original Message-----
>Hi,
>
>I Am trying to bind ForeColor property of a TreeNode with
an object in the
>node's Tag property
>
>The idea is this .. when a certain value of the object
associated with
>particular node changes I need to change the color of the
node.
>
>
>Tree is not bound to any datasource.
>
>Thanks,
>Ron
>
>
>.
>