In the program, I assign the value directly to the dataset, trying to change the data in the database
for (int j=1; j< dataSetPlayerSkill.Tables[0].Rows[0].ItemArray.Count; j++) { dataSetPlayerSkill.Tables[0].Rows[0].ItemArray[j] = matrixAlternativ[0][j]; dataSetPlayerSkill.Tables[0].Rows[1].ItemArray[j] = matrixAlternativ[1][j]; dataSetPlayerSkill.Tables[0].Rows[2].ItemArray[j] = matrixAlternativ[2][j]; } After that I want to save these changes.
connection.open(); dataSetPlayerSkill.AcceptChanges(); adapter.Update(dataSetPlayerSkill); connection.Close(); But they are not saved. My database consists of [Code] - counter (primary key), [Pole1] - text
If you remove the dataSetPlayerSkill.AcceptChanges(); then an error occurs

DataSet,DataAdapter. - Vadim Ovchinnikov