Inherit from TreeNode

Discussion in 'ASP .Net Web Controls' started by Henke, Jun 10, 2004.

  1. Henke

    Henke Guest

    Isn't it possible to use inherited TreeNodes in a TreeView?
    I get an ArgumentOutOfRangeException when trying to add a second node to the
    tree.

    My class looks like this:

    public class MyTreeNode : Microsoft.Web.UI.WebControls.TreeNode
    {
    public MyTreeNode()
    {
    }
    }

    Thanks in advance
     
    Henke, Jun 10, 2004
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Aditi Deo via .NET 247
    Replies:
    0
    Views:
    445
    Aditi Deo via .NET 247
    Jun 5, 2004
  2. naijacoder naijacoder
    Replies:
    1
    Views:
    783
    naijacoder naijacoder
    Sep 15, 2004
  3. naija naija
    Replies:
    0
    Views:
    593
    naija naija
    Sep 28, 2004
  4. Patrick Olurotimi Ige
    Replies:
    2
    Views:
    704
    Patrick Olurotimi Ige
    Feb 15, 2005
  5. =?Utf-8?B?bWFya2FlbGtpbnNAbmV3c2dyb3Vwcy5ub3NwYW0=

    How to enter a variable in the treenodesrc of a treenode

    =?Utf-8?B?bWFya2FlbGtpbnNAbmV3c2dyb3Vwcy5ub3NwYW0=, Sep 15, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    1,212
    Steven Cheng[MSFT]
    Sep 19, 2005
  6. Booshmon

    TreeNode subclass

    Booshmon, Oct 4, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    705
    Booshmon
    Oct 4, 2005
  7. CS
    Replies:
    0
    Views:
    1,875
  8. tanya foster
    Replies:
    3
    Views:
    3,987
    tanya foster
    May 18, 2006
Loading...