title: Visual Studio VB Update requires a valid UpdateCommand when passed DataRow collection with modified rows
body: <p>I have button update and the code</p>
  <pre><code>Private Sub txtSave_Click(sender As Object, e As EventArgs) Handles txtSave.Click
          Me.Validate()
          Me.TrackingBindingSource.EndEdit()
          Me.TableAdapterManager.UpdateAll(Me.InventoryDataSet)
          MsgBox(&quot;Record Update&quot;)
  End Sub
  </code></pre>
  <p>When run, I got error</p>
  <pre><code>System.InvalidOperationException: 'Update requires a valid UpdateCommand when passed DataRow collection with modified rows.'
  </code></pre>
  <p>Not sure do I miss something for update records. Thank you</p>