treeview with extended nodes

  • Thread starter Kasper Birch Olsen
  • Start date
K

Kasper Birch Olsen

Hi NG

I have a class that extends TreeNode, in order to "attach" extra
information. When someone clicks the tree, I want to do something like:

protected void myOnSelectedChange(object sender, eventargs e)
{
ExtendedTreeNode node = (ExtendedTreeNode)TreeView1.SelectedNode;
// do something with the node
}

problem is that I get an exception telling me that the specified cast is
invalid.

How can I fetch the "extended" information, rather than just a normal
treenode?

- Kasper
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top