title: DataGridView Update
body: <p>I'm using 2005 Windows Forms in C#.  I've only been working at this for a day, so go easy please.</p>
  
  <p>I'd like to have a submit button that saves changes to a DataGridView.  I've gotten data into the DGV and can edit, but am stuck on the Update().</p>
  
  <p>I've created an .xsd named scDB and one DataTable called -  SSIS Configurations Staging.  I then added a new query that takes a parameter.</p>
  
  <p>Here is my code so far:</p>
  
  <pre><code>//Declared at top of form class    
  scDBTableAdapters.SSIS_Configurations_StagingTableAdapter myStagingTableAdapter = new scDBTableAdapters.SSIS_Configurations_StagingTableAdapter();
  
  
  //After a form event            
  stagingGrid.DataSource = myStagingTableAdapter.GetDataBy(filterName.Text.ToString());
  
  //On Submit click:
  
  myStagingTableAdapter.Update(?What Goes Here?);
  </code></pre>
  
  <p>What gets passed to the Update method?  I know it needs a dataTable, but I don't know how to reference what is in the GridView.  In most code examples people define the DataTable - but I do not.  I assume this is being done behind the scenes when I created the TableAdapter.  Thanks for the help.</p>