title: How to fill datagridview cells at runtime?
body: <p>I need my to fill my <code>datagridview</code> with values from some list. 
  I try to make it in such way: </p>
  
  <pre><code>List&lt;List&lt;object&gt;&gt; objList1 = new List&lt;List&lt;object&gt;&gt;
      {
           new List&lt;object&gt; {null, null, null, "Some Value"},
           new List&lt;object&gt; {"Some text", "Another Text", 212}
      };
  
  List&lt;List&lt;object&gt;&gt; objList2 = new List&lt;List&lt;object&gt;&gt;
      {
           new List&lt;object&gt; {null, null, null, "Some Value from 2 list"},
           new List&lt;object&gt; {"Some text 3", "Another Text 5", 34}
      };
  
  foreach (var objList in objList1)
      {
           dataGridView.Rows.Add();
           for (int i = 0; i &lt; objList.Count -1; i++)
           {
                dataGridView.Rows[dataGridView.RowCount - 1].Cells[i].Value = objList[i] != null ? objList[i].ToString() : "";
           }
      }
      dataGridView.Rows.Add();
  
  foreach (var objList in objList2)
      {
           dataGridView.Rows.Add();
           for (int i = 0; i &lt; objList.Count - 1; i++)
           {
               dataGridView.Rows[dataGridView.RowCount - 1].Cells[i].Value = objList[i] != null ? objList[i].ToString() : "";
           }
      }
      dataGridView.Rows.Add();
  </code></pre>
  
  <p>But instead of getting my <code>datagridview</code> filled, I get only the last row filled:</p>
  
  <p><img src="https://i.stack.imgur.com/k5uRl.jpg" alt="enter image description here"></p>