title: Trying to transfer from one dataGridView to another accordingly
body: <p>My datagridView1 contains 7 columns, and first one has dates. 
  I'm trying to transfer january data from dataGridView1 to dataGridView2
  I did try using a loop, which logically thought it would work, but it would give me nullExceptions</p>
  
  <p>Here's my code: </p>
  
  <pre><code> for (int i = 0; i &lt; f1.dataGrivView1.Rows.Count; i++)
          {
                  if (f1.dataGrivView1.Rows[i].Cells[0].Value.ToString().Split('/')[1].StartsWith("01"))//if january..
                  {
                      dataGrivView1.Rows.Add();//datagridview in current form
                      dataGrivView1.Rows[i].Cells[0].Value = f1.dataGrivView1.Rows[i].Cells[0].Value.ToString();
                      dataGrivView1.Rows[i].Cells[1].Value = f1.dataGrivView1.Rows[i].Cells[1].Value.ToString();
                     }}
  </code></pre>
  
  <p>And after some googling, I saw you can't just copy data this way and you need to clone it, so I tried. </p>
  
  <pre><code>            foreach (DataGridViewRow dgvr in f1.dataGridView1.Rows)
              {
                  DataGridViewRow r = dgvr.Clone() as DataGridViewRow;
                  foreach (DataGridViewCell cell in dgvr.Cells)
                  {
                      if (cell.Value.ToString().Contains("/01/"));
                      r.Cells[cell.ColumnIndex].Value = cell.Value;
                  }
  
                  dataGridView1.Rows.Add(r);
              }
  </code></pre>
  
  <p>But.. same thing. 
  Any idea?</p>