VB 2005 question - BindingSource object

C

Charlie Mac

VB Gerus,

I am new to VB 2005 and am receiving the "Update requires a valid
UpdateCommand when passed DataRow collection with modified rows."
message tied to the TableAdapter line when trying to save data
modified in a DataGridView. MyEray is the table name. What obvious
thing am I missing? Thanks.

Charlie from Texas

Private Sub SaveToolStripButton_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles SaveToolStripButton.Click
' Save data routine
Me.Validate()
Me.MyErayBindingSource.EndEdit()
Me.MyErayTableAdapter.Update(Me.EAdataDataSet1.MyEray)
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top