title: Populate TreeView from DataTable or List that contains tree-like data
body: <p>I have created an account table in my database, with these columns:</p>
  
  <pre><code>ID
  Name
  ParentID
  </code></pre>
  
  <p>This is an example of how records have been stored:</p>
  
  <pre><code>ID   Name    ParentID
  1    BANK A  0
  2    0001    1
  3    0002    1
  4    BANK B  0
  5    0001    4
  6    0002    4
  </code></pre>
  
  <p>But the company name does not come from database, it comes from code. So how can I expand the <code>TreeView</code> like this?</p>
  
  <pre><code>├─ BANK A
  │  ├─ 0001
  │  └─ 0002
  └─ BANK B
     ├─ 0001
     └─ 0002
  </code></pre>
  
  <p>How can I do this in C#? I also tried from <a href="https://stackoverflow.com/questions/805457/populate-winforms-treeview-from-datatable">HERE</a> but I still don't understand it.</p>