A
Andrus
I tried to edit data in DataGridView.
Insert and delete operations in grid are not saved to database. Updating
works OK.
How to force grid to save Insert and Delete operations also ?
Andrus.
Northwind db = CreateDB();
var list = new BindingList<Customer>(db.GetTable<Customer>().ToList() );
DataGridView grid = new DataGridView { Dock = DockStyle.Fill, DataSource =
list };
Form f = new Form { Controls = { grid } };
Application.Run(f);
db.SubmitChanges();
Insert and delete operations in grid are not saved to database. Updating
works OK.
How to force grid to save Insert and Delete operations also ?
Andrus.
Northwind db = CreateDB();
var list = new BindingList<Customer>(db.GetTable<Customer>().ToList() );
DataGridView grid = new DataGridView { Dock = DockStyle.Fill, DataSource =
list };
Form f = new Form { Controls = { grid } };
Application.Run(f);
db.SubmitChanges();