Concurrency violation!

L

Lance

I am making use of the disconnected dataset in C#.

I am writing an MDI App where the Child of the MDI makes use of a
disconnected Dataset. I open two Child forms!

The first Child form I changes some data and save it to the database.

The second form still contain the previous old data, but once I changes some
data, it pushes out an CONCURRENCY VIOLATION.

Why?

I want to understand the underlying features! I want to know what actually
happening?

Can someone help me?
 
M

Miha Markic [MVP C#]

This happens because the second form holds old data - you shouldn't
overwrite new data with old data - that is concurrency violation.
Of course, you might turn checking off, but it is not recommended.
 

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