title: Getting text only from a specific column of DataGridView
body: <p>I have a DataGridView that is populated with 4 columns and multiple rows of data. I want to iterate through the DataGridView and get the cell value from <em>a specific column only</em>, since I need this data to pass into a method.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>foreach (DataGridViewRow row in this.dataGridView2.Rows)
  {                            
      foreach (DataGridViewCell cell in row.Cells)
      {
          if (cell.Value == null || cell.Value.Equals(""))
          {
              continue;
          }
  
          GetQuestions(cell.Value.ToString());  
      }
  }
  </code></pre>
  
  <p>This just seems to go through all the cells, however I need to be able to specify something like:</p>
  
  <pre><code>foreach (DataGridViewRow row in this.dataGridView2.Rows)
  {                            
      foreach (DataGridViewCell cell in row.Cells[2])//Note specified column index
      {
          if (cell.Value == null || cell.Value.Equals(""))
          {
              continue;
          }
          GetQuestions(cell.Value.ToString());
      }
  }
  </code></pre>