title: Visual Basic, How do I read each row in a datagrid?
body: <p>I have a datagrid called DataGridView1, column A contains a name, column B contains a path to a file. How do I run some code for each row? What is the correct terminology for traversing a datagrid in this way?</p>
  
  <p>Example of what I need:</p>
  
  <pre><code>For each row in DataGridView1
   MessageBox.Show DataGridView1.ColumnA.text &amp; "," &amp; DataGridView1.ColumnB.text
  </code></pre>
  
  <p>Thanks</p>