Hello. I have a treeview on a form that is to show the Projects as the top level with Tasks as the children. A child can also be a parent. When a task is created it is assigned a parent (if appropriate) and a Project. In the past I have filled a treeview from a view that had the ID, Name, ParentID in it and not have a problem doing it recursively. But for this the info is in 2 tables (Projects and Tasks) or 1 view. This is a sql server db. In the view there is the TaskID, Task, ProjectID, ProjectName, ParentTaskID (which is the TaskID as a FK for the parent) and other columns but none relavent. I am lost on this as to how to populate the treeview and seek help from those of you who are willing. As mentioned I've done it recursively but this is becoming hectic.
How do I populate the treeview from this info?
Thanks...John