I am trying to figure out how to do the following.
I have a treeview, each child node will display a list of data in a listview when the node is clicked on. My problem is I don't know how to store more than one class or struct to a treenode. Lets say I have the following information.
public class ListViewData
{
public string name = "";
public string address = "";
publc string phone = "";
public string state = "";
public string zip = "";
}
Lets say for a selected treenode I have added in 10 or more records into the listview, but I will only show maybe the name and phone properties. Now that specific treenode will be pointing to those 10 records. How do I add the records into the Tag property of the node so that when I dbl-click on a listview item the correct record will be pulled from the node and popup in a window?
As I said before I know how to store one class or struct per node tag when I create the node, but I don't know how to store multiple structs per node tag.
Even after you store all the records per node tag, how would you access them? I am sure I am missing out on a bit of information, but it will come to me as I struggle more.
Thanks for any help.
Start Free Trial