title: How to get cell value of DataGridView by column name?
body: <p>I have a WinForms application with a <code>DataGridView</code>, which DataSource is a DataTable (filled from SQL Server) which has a column of <code>xxx</code>. The following code raises the exception of </p>
  
  <blockquote>
    <p>ArgumentException was unhandled. Column named xxx cannot be found.</p>
  </blockquote>
  
  <pre><code>foreach (DataGridViewRow row in Rows)
  {
      if (object.Equals(row.Cells["xxx"].Value, 123))
  }
  </code></pre>
  
  <p>Is it possible to get the cell values by column name?</p>