title: Looping through a specific dataset column to check if it contains a certain value
body: <p>I load a datagridview and am trying to find a quick way of looping through a certain column, given column name....</p>
  
  <p>This is how my datagridview is loaded....</p>
  
  <pre><code>ad = New SqlDataAdapter(sql, con)
  ad.Fill(ds, "Fields")
  dgvFields.DataSource = ds.Tables("Fields")
  
  dgvFields.ReadOnly = True
  dgvFields.RowHeadersVisible = False
  
  dgvFields.Columns(0).Width = 156
  dgvFields.Columns(1).Width = 156
  dgvFields.Columns(2).Width = 156
  dgvFields.Columns(3).Width = 157
  </code></pre>
  
  <p>'Now I want to be able to loop through dgvfields.columns(3) or column name "Field1a" and check if dgvfields.rows="ValueA"</p>
  
  <p>something along the lines...</p>
  
  <pre><code>   For Each row As DataRow In dgvFields.Columns(5)
         if dgvfields.rows.value="ValueA" then
            'do something
         End if
  
     Next
  </code></pre>