Hi,
Maybe you can do in this way?
Adapter;
private
void Button1_Click(
object sender,
EventArgs e)
{
DataRow dr = ds.Tables[0].NewRow();
dr[0] = 10;
dr[1] = "test";
ds.Tables[0].Rows.Add(dr);
Adapter.Update(ds.Tables[0]);
}
When you need to refresh after a delete, you can do this like this:
MyBindingSource.ResetBindings(false);
This causes a control bound to the BindingSource to reread all the items in the list and refresh their displayed values.
There exist similar functions called ResetCurrentItem and ResetItem.
Kind regards