title: Update Error in cell
body: <p>When I edit my <code>DataGridView</code>'s cell I want to immediately update my MSSQL database. I added a <code>CellEndEdit' event handler. Also I added autogenerated bindingsource and</code>TableAdapter`. </p>
  
  <p>It works correctly but whenever I want to edit my value I get an error. Actually, I wrote an update method with <code>SqlDataAdapter</code>. But in this time I use auto-generated <code>TableAdapter</code>. I don't know what to do. I try this one but I got an error.</p>
  
  <p><strong>Note</strong>: <code>DataSet11</code>, <code>loginTableAdapter</code>, and <code>Bindingsource1</code> are auto generated and work.</p>
  
  <pre><code>private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
  {
     SqlCommandBuilder querybuilder = new SqlCommandBuilder(loginTableAdapter);
     querybuilder.GetUpdateCommand();
     loginTableAdapter.Update(dataset11);
  }
  </code></pre>