views:

310

answers:

0

Hi,

I have a form with for example two textboxes bound via BiningSource to my DataTable. Now everything works fine but if I try to change something manually in BindingSource.Current, the changes aren't saved in the database, for example:

in buttonSave_Click():

((DataRowView)myBindingSource.Current)["Description"] += "foo bar";
myBindingSource.EndEdit();
myTableAdapter.Update(myDataSet.myTable);

if I watch myBindingSource "foo bar" is being attached to description field and is still there after EndEdit BUT it is not in my database after the update. Any idea why? I've already tried running EndEdit before and after adding something to description.

Greetings