I've done a bunch of searching, but I can tell that my fundamental lack of understanding of treeview nodes is keeping me from putting this together.
I've got a simple dataset with a view that looks like this:
and I want a treeview that looks like this:
I'd planned to do a simple roll through the table, looking to see if GameID, DeckID, or VersionID changed, and would just go "up" or "down" a level in the treeview and add a node at the appropriate place.
Unfortunately, I don't get how to go deeper or more shallow, as it were... how to set what parent I'm adding a given child under. Referencing it, I guess.
Any pointers, even if it's just on understanding the treeview control better? I've read a bunch of stuff in MSDN and via Google and here, but it seems the thickness of my skull is proving to be a problem.
I've got a simple dataset with a view that looks like this:
Code:
GameID Game.Name DeckID Deck.Name VersionID Version.Name
1 Candyland 1 Movement 1 First Attempt
1 Candyland 1 Movement 2 Second Attempt
1 Candyland 2 Bonus 3 Alpha
2 Monopoly 3 Community 4 Initial Attempt
2 Monopoly 4 Chance 5 Starter Version
2 Monopoly 5 Properties 6 1.0
2 Monopoly 5 Properties 7 1.1
2 Monopoly 5 Properties 8 2.0
Code:
Candyland
|-Movement
| |-First Attempt
| |-Second Attempt
|-Bonus
|-Alpha
Monopoly
|-Community
| |-Initial Attempt
|-Chance
| |-Starter Version
|-Properties
|-1.0
|-1.1
|-2.0
Unfortunately, I don't get how to go deeper or more shallow, as it were... how to set what parent I'm adding a given child under. Referencing it, I guess.
Any pointers, even if it's just on understanding the treeview control better? I've read a bunch of stuff in MSDN and via Google and here, but it seems the thickness of my skull is proving to be a problem.