title: multi dimensional list - vb
body: <p>I have a problem that can't solve...</p>
  
  <p>I have the set of data, which i want to add in two dimensional list (in Visual Basic)</p>
  
  <p>the result of sql query is:</p>
  
  <pre><code>ID   value1 value2
  0001  a      10
  0001  b      10
  0002  a      30
  0002  b      20
  0002  c      15
  0003  a       5
  </code></pre>
  
  <p>....</p>
  
  <p>so, i want add all elements into two dimensional list:</p>
  
  <pre><code>    Dim multilist As New List(Of List(Of String))
      multilist.Add(New List(Of String))
      multilist.Add(New List(Of String))
      multilist.Add(New List(Of String))
  </code></pre>
  
  <p>and I need a vb code that will add elemenets with different ID's  to different lists of one two dimensional list</p>
  
  <p>thank you :) </p>
  
  <p>result must be:</p>
  
  <pre><code>in first list elements 1 and 2
  in the second list elements 3,4,5
  in the third list the last element
  </code></pre>