dougcoulter
Programmer
Hello all - I've got a problem I've been struggling with the last day or so. I have a DataSet composed of 5 tables, each related in a hierarchical fashion (i.e.: Table1 is the root, Table2 only has items that are related to Table1, Table3 only has items that are related to Table2, etc.)
I would like to display the rows of these tables hierarchically via the TreeView control and am wondering what would be the most efficient way. I am thinking something recursive in nature, but I've never been very good at thinking recursively. I currently have added the nodes for the top level from Table1 and am wondering if at the same time I should add the related child nodes for each using the GetChildRows method. If I do that, I am not sure where to go from there.
Can anyone straighten me out? I think I've been thinking about this too long and maybe not in the right way.
I would like to display the rows of these tables hierarchically via the TreeView control and am wondering what would be the most efficient way. I am thinking something recursive in nature, but I've never been very good at thinking recursively. I currently have added the nodes for the top level from Table1 and am wondering if at the same time I should add the related child nodes for each using the GetChildRows method. If I do that, I am not sure where to go from there.
Can anyone straighten me out? I think I've been thinking about this too long and maybe not in the right way.