Witam. Podczas zabawy w programowanie napotkałem następujący problem. Chcąc zaktualizować bazę danych wyskakuje mi następujacy błąd: Naruszenie współbieżności: element UpdateCommand dotyczy następującej liczby rekordów: 0 (oczekiwana liczba rekordów: 1).
Oto kod programu:

string sql = "Select * from personalweapon";
MySqlDataAdapter da = new MySqlDataAdapter();
MySqlConnection conn = new MySqlConnection(connectionString);
da.SelectCommand = new MySqlCommand(sql, conn);
DataSet ds = new DataSet();
int numrecs = da.Fill(ds);
DataTable dt = ds.Tables[0];
MySqlCommandBuilder sb = new MySqlCommandBuilder(da);
DataRow drow = dt.NewRow();

dt.Rows[index]["Producer"] = textBoxProducent.Text;
dt.Rows[index]["Price"] = Convert.ToInt32(textBoxCena.Text);
dt.Rows[index]["Range"] = Convert.ToInt32(textBoxZasieg.Text);
dt.Rows[index]["Weight"] = textBoxWaga.Text;
dt.Rows[index]["Caliber"] = textBoxKaliber.Text;
dt.Rows[index]["Capacity"] = Convert.ToInt32(textBoxPojMag.Text);
dt.Rows[index]["Accessories"] = textBoxAkcesoria.Text;

int updates = da.Update(ds, ds.Tables[0].TableName );

Pisząc podobny program do innej bazy program działa bez problemu.
Gdzie może tkwić problem?