What means this error message?

  • Thread starter Thread starter giannis
  • Start date Start date
G

giannis

I am a newbie at VB.
When i try to remove an item from the BindingSource and try to delete this
item from the database:

BindingSource.RemoveCurrent()

Me.TABLETableAdapter.Update(Me.DataSet.TABLE)


i receive the message :

"Update requires a valid DeleteCommand when passed DataRow collection with
deleted rows."

What means this error message and how resolve this ?
Any code is it will acceptable.
Sorry for my english and thank you !
 
giannis said:

Yes you are. Look at the bottom of that article at "To delete records from
a database using command objects".

You don't have a DeleteCommand object defined for your data adapter or
TableAdapter object.

Robin S.
 
Back
Top