title: Adding columns to a DataTable bound to a DataGridView does not update the view
body: <p>I have a DataTable which is populated from a CSV file then, using a DataGridView the data is edited in memory. As far as I understand the programmatic editing of the data should be done on the DataTable where the user editing is done via. the DataGridView.</p>
  <p>However when I add columns programmatically to the DataTable, it is not reflected automatically in the DataGridView and I suspect the converse is also true.</p>
  <p>How do you keep the two concurrent? I thought the idea of data binding was that this was automatic...</p>
  <p>Also adding rows works fine.</p>
  <hr />
  <p><b>SOLVED:</b></p>
  <p>The <code>AutoGeneratedColumns</code> was set to <code>false</code> in the designer code despite being <code>true</code> in the properties dialog (and set explicitly in the code). The initial columns were generated programmatically and so should not have appeared however this was not picked up on since the designer code also continued to generate 'designed in' columns that were originally used for debugging.</p>
  <p>Moral: Check the autogenerated code!</p>
  <p>In addition to this, see <a href="https://stackoverflow.com/questions/499321/">this post</a> and <a href="https://stackoverflow.com/questions/530176/">this post</a></p>