Recursive TreeView in asp.net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a table that does recursive self joins. The primary key is CustomerID and there is an attribute SponsorID which is a customerID. The top level customerid is known. I'd like to populate a treeview that would have an unknown number of levels and an unknown number of nodes at each level (Except level 1). Each customer with a sponsorid of the current nodes CustomerID would be a child

Any help would be appreciated

Thanks
 
Is your question about recursion concepts or about treeview class?


Rick Wiker said:
I have a table that does recursive self joins. The primary key is
CustomerID and there is an attribute SponsorID which is a customerID. The
top level customerid is known. I'd like to populate a treeview that would
have an unknown number of levels and an unknown number of nodes at each
level (Except level 1). Each customer with a sponsorid of the current nodes
CustomerID would be a child.
 
I am having a problem getting a handle on how to recurse the recordset. I've done this before in Access by using a bookmark to return to to find my previous position. Just not sure how to do this in ADO.net.
 
Back
Top