Reflecting a table's structure in a TreeView
Hi!
I have a table for departments containing the following fields:
1) DeptID
2) DeptName
3) ParentDept
Now what I want is to reflect the parent-child relationship of the departments in a TreeView control using ADO, but can't understand how to do it. Any help (and sample code, if possible) would be much appreciated.
Thank you.
Shakeel :)
|