title: Looping through DataGridView columns, the first column is not recognized
body: <p>Using a <code>foreach</code> loop, I'm going through all the columns inside my <code>datagridview</code>. The <code>datagridview</code> I have is being filled from a CSV file.</p>
  
  <p>It shows all the data correctly. </p>
  
  <p>This is the foreach loop:</p>
  
  <pre><code>foreach (DataGridViewTextBoxColumn col in dgviewPreview.Columns)
  {
     if (col.Name.Equals("FirstColumn"))
        MessageBox.Show(col.Name);
  }
  </code></pre>
  
  <p>This is a sample of my CSV file that the program reads:</p>
  
  <p><img src="https://i.stack.imgur.com/QWFvL.jpg" alt="enter image description here"></p>
  
  <p>If I remove the </p>
  
  <blockquote>
    <p>if (col.Name.Equals("FirstColumn"))</p>
  </blockquote>
  
  <p>Line from my foreach loop, all the columns are displayed. Even when I use any other column name other than FirstColumn in my condition (e.g. "Company Name", "Email"), the message box is correctly show. But the first column (no matter which file I'm loading into the Gridview or what the name of the column is) is never recognized by the if statement. I do not know what I am doing wrong. Has anyone had the same problem?</p>
  
  <p><strong>Update</strong>: Screen shot of my current columns at runtime.
  <img src="https://i.stack.imgur.com/mTCYg.png" alt="enter image description here"></p>
  
  <p><strong>Update 2</strong>: 
  <a href="https://www.mediafire.com/?h3tqgvn98dlimwj" rel="nofollow noreferrer">This</a> is a link to the csv file I'm using.</p>