With the latest trial version. I'd like do this, bind some textbox to some fields of a table, when I do a change, I'd like to accept the change (update) when I click on a button. In theory it's easy, but that's not work or I do something wrong.
I see the record in the textbox, but no update possible.
Code: Select all
ds = new DataSet();
da = new CoreLab.MySql.MySqlDataAdapter("SELECT * FROM t_test", myconn);
cb = new CoreLab.MySql.MySqlCommandBuilder(da);
da.Fill(ds);
textBox1DataBindings.Add("text", ds.Tables[0], "TEST_FIELD");
textBox2.DataBindings.Add("text", ds.Tables[0], "TEST_FIELD2");
Code: Select all
da.Update(ds);
Do you have an idea why ?
Thanks,