TreeView - Event fired when node added / removed?

S

sho_nuff

Hello all,

I want know when a node is added or removed from my tree so that i can
update another structure automatically. Is there an event that is
fired when a node is added or removed?

Thanks,
SN
 
A

Abhijeet Dev

I dont think its there, but u can inherit TreeNode and create a custom node,
which fires this event on adding a new node to it... generate the tree using
that custom tree node and then identify the correct node using sender
object.

Abhijeet Dev
 
M

Michael Giagnocavo [MVP]

Not that I know of. I guess you'll need to create your own event and call it
when things are added/removed.

-mike
MVP
 
A

Abhijeet Dev

It definitely requires a new event declaration, but i was suggesting to use
the standard EventHandler, although a new delegate can also be declared.
 
S

sho_nuff

Yeah, i didn't think i saw any built in events that would handle this,
but i was just hoping i missed something.

Funny that they provide events for everything up to when my shoe was
tied, but not when nodes are added / removed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top