Concurrency violation: the UpdateCommand affected 0 of the expected 1 records?

  • Thread starter Thread starter Dzemal Tipura
  • Start date Start date
D

Dzemal Tipura

I populate dataset using this code
Me.KorisniciTableAdapter.FillByID(Me.DsKorisnici.Korisnici, IDKorisnika)

columns from this dataset are bounded to controls on the form and I want to
save changes back to database with this code:

KorisniciBindingSource.EndEdit()
KorisniciTableAdapter.Update(DsKorisnici.Korisnici)

and I get error mentioned in subject.Why?

Thx
 

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

Back
Top