title: Moving data from datatable to datagridview in C#
body: <p>I have a C# program that selects data from two different database files and combines the data that I need into a datatable (dt).  All the information I need is in that datatable, and I want to put it into a datagridview.  Besides the information in the datatable, I also have two columns in the datagridview that I'll calculate as I add each row to the datagridview (dataGridView1).</p>
  
  <p>My question is: How can I get my datatable (dt) into the datagridview (dataGridView1)?  Would I do something like this?:</p>
  
  <pre><code>dataGridView1.column("MemberSep") = dt.column("MBRNUM);
  </code></pre>
  
  <p>I'm thinking that I could loop through the datatable, calculate the values for my first two columns of the datagridview, and then write it all to a row until I've read the whole datatable.  I've never worked with a datagridview control before.  Any help would be greatly appreciated.</p>
  
  <p><img src="https://i.stack.imgur.com/9YMch.png" alt="Picture of my App"></p>