title: Create hierarchical class structure , loop through data table and then add parent and child and return object
body: <p>I want to create a class structure that can represent the following heirarchichal structure of objects all of the same type</p>
  
  <pre><code>-Parent1
  - - Child1 
  - - - ChildA of Child1
  - - - ChildB of Child1
  - - Child2 
  - - - ChildA of Child2
  - - - ChildB of Child2
  - Parent2
  </code></pre>
  
  <p>The datatable rows have an ID, ParentID, name and level</p>
  
  <p>level is O for Parent, 1 for Child 1 , 2 for ChildA and so on</p>
  
  <p>I'm able to return the data from the DB to a datatable but am struggling after that
  any help on creating the class structure and then populating the object would be greatly appreciated</p>