D
Dzemo
i use this code to get data into dataset
cmd.CommandType = CommandType.Text
cmdUpdate.CommandType = CommandType.Text
cmdUpdate.CommandText = "Update BigOne Set Rezultat=? where ID=?"
cmdUpdate.Parameters.Add("Rezultat", OleDb.OleDbType.Char, 30, "Rezultat")
cmdUpdate.Parameters.Add("ID", OleDb.OleDbType.Integer, 6, "ID")
cmdUpdate.Parameters("ID").SourceVersion = DataRowVersion.Original
'todo: vidi ovu komandu
da.SelectCommand = cmd
da.UpdateCommand = cmdUpdate
cmd.CommandText = "SELECT sections.ID, Analize.Name as Analiza,
BigOne.Rezultat FROM BigOne INNER JOIN Analize ON BigOne.IDAnalize =
Analize.ID INNER JOIN Sections ON Analize.IDSekcije = Sections.ID WHERE
BigOne.BrojProtokola Like '" & txtBroPro.Tekst.Trim & "'"
da.Fill(ds, "Sekcije")
and then use dataview object to filter data and fill various datagrids on my
form. Datagrids aro on diferent TabPages. When i click on btnOK whit this
code
da.Update(ds.Tables(0))
I get mentioned error in subject:
Concurrency violation: The UpdateCommand affected?
What is problem
cmd.CommandType = CommandType.Text
cmdUpdate.CommandType = CommandType.Text
cmdUpdate.CommandText = "Update BigOne Set Rezultat=? where ID=?"
cmdUpdate.Parameters.Add("Rezultat", OleDb.OleDbType.Char, 30, "Rezultat")
cmdUpdate.Parameters.Add("ID", OleDb.OleDbType.Integer, 6, "ID")
cmdUpdate.Parameters("ID").SourceVersion = DataRowVersion.Original
'todo: vidi ovu komandu
da.SelectCommand = cmd
da.UpdateCommand = cmdUpdate
cmd.CommandText = "SELECT sections.ID, Analize.Name as Analiza,
BigOne.Rezultat FROM BigOne INNER JOIN Analize ON BigOne.IDAnalize =
Analize.ID INNER JOIN Sections ON Analize.IDSekcije = Sections.ID WHERE
BigOne.BrojProtokola Like '" & txtBroPro.Tekst.Trim & "'"
da.Fill(ds, "Sekcije")
and then use dataview object to filter data and fill various datagrids on my
form. Datagrids aro on diferent TabPages. When i click on btnOK whit this
code
da.Update(ds.Tables(0))
I get mentioned error in subject:
Concurrency violation: The UpdateCommand affected?
What is problem