title: how to get specific colums from datagridview to listbox
body: <p>im trying to get 3 columns instead of 15 to listbox, how do i do that? </p>
  
  <p>this is the code which gets all columns.</p>
  
  <pre><code>private void testlist()
      {
          string[,] Datavalue = new string[dataGridView1.Rows.Count, dataGridView1.Columns.Count];
          foreach (DataGridViewRow row in dataGridView1.Rows)
          {
              foreach (DataGridViewColumn col in dataGridView1.Columns)
              {
                  Datavalue[row.Index, col.Index] = dataGridView1.Rows[row.Index].Cells[col.Index].Value.ToString();
              }
          }
          int i = 1;
          string strval = "";
          foreach (string ss in Datavalue)
          {
              strval += ss + " ";
              if (i == 15)
              {
                  listBox1.Items.Add(strval);
                  strval = "";
                  i = 0;
              }
              i++;
          }
      }
  </code></pre>