troubleshooting Question

C# -- WinForms "concurrency violation"

Avatar of finance_teacher
finance_teacher asked on
.NET ProgrammingC#
6 Comments1 Solution811 ViewsLast Modified:
Does anyone have a fix for the below ?

 1. user #1 has DataGridView with 1,000+ records
 2. user #1 updates 20 of these records
 3. user #2 deletes one of the 20 records
 4. user #2 COMMITS delete
 5. user #1 COMMITS 20 updates
 6. user #1 gets ERROR
       ** concurrency violation the updatecommand
           affected 0 of the expected 1 records

Attached show my DataSet1.xsd
UPDATE and DELETE commands.

Basically I want a way for user #1's 19 updates to
work and get a NOTICE of the 1 failed update
and why it failed.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros