title: Loop through a DatagridView and check if string exist in first cell
body: <pre><code>private void cap_CapturingEventHandler(string file)
  {
      this.Invoke((MethodInvoker)delegate
      {
          foreach (DataGridViewRow row in dataGridView.Rows)
          {
              if (file == row[0].ToString())
              {
  
              }
          }
      });
  }
  </code></pre>
  
  <p>My application adds files into my <code>DatagridView</code>.  Each time a new file arrived i want to check whether this file is already exist in my <code>DatagridView</code> (first cell in row).  </p>
  
  <p>It seems that my example does not even compile.</p>