Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2006

Tip: Looking for answers? Try searching our database.

VB 2005 question - BindingSource object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Charlie Mac - 26 Oct 2006 20:39 GMT
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
Charlie Mac - 26 Oct 2006 21:02 GMT
Sorry people - I posted this in the wrong group.

>VB Gerus,
>
[quoted text clipped - 13 lines]
>        Me.MyErayTableAdapter.Update(Me.EAdataDataSet1.MyEray)
>End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.