title: Display DataGridView values in text boxes based on matching values - vb.net
body: <p>I have an SQL query that returns 2 columns of values:
   </p>
  
  <pre><code>country  |  number
  NA       |    1
  IN       |    2
  CN       |    3
  DE       |    4
  </code></pre>
  
  <p>And so on.</p>
  
  <p>I am trying to do one of the following:  </p>
  
  <ol>
  <li>Assign these values to variables I can copy to an excel workbook  </li>
  <li>Or just use the DGV as a medium to copy values to text boxes.  </li>
  </ol>
  
  <p>For example, I have a form with country labels and textboxes next to them. I would want to click a button and have the data copied to the matching text box.</p>
  
  <p>DGV number value where DGV row value = CN would be 3 and that value would be copied to the CN value text box.</p>