Hello

here is my code :

VB Code:
  1. Console.WriteLine(DsDozen1.Dozen.Rows(cmDozen.Position).Item("Opnameorientatie"))
  2. ' here opnameorientatie = 0                      
  3.   DsDozen1.Dozen.Rows(cmDozen.Position).BeginEdit()
  4.                         DsDozen1.Dozen.Rows(0).AcceptChanges()
  5.                         Dim h As Integer = (CInt(DsDozen1.Dozen.Rows(cmDozen.Position).Item("Opnameorientatie")) + 90) Mod (CInt(System.Configuration.ConfigurationSettings.AppSettings("MaxDoosOpn")) + 90)
  6.                         ' 'DsDozen1.Dozen.Rows(cmDozen.Position).Item("Opnameorientatie") = h
  7.                      'here h = 90   DsDozen1.Dozen.Rows(cmDozen.Position).Item("Opnameorientatie") = h
  8.                         'DsDozen1.Dozen.Rows(cmDozen.Position).EndEdit()
  9.                         DsDozen1.Dozen.Rows(cmDozen.Position).EndEdit()
  10.                         Try
  11.                             cmDozen.EndCurrentEdit()
  12.                             daDozen.Update(DsDozen1.Dozen)
  13. 'here i get a concurrencyerror
  14.                             DsDozen1.Dozen.AcceptChanges()
  15.                         Catch ex As Exception
  16.                             Console.WriteLine(ex.Message)
  17.                         End Try

Does anyone has an idea why i get a concurrency violation:
It says that there are no rows affected, but it really does affect a row...

plz help me

thx

Flyduck