I am binding a list of objects to a DataGridView like the following
var list = new List<Value>();
list.Add(new Value() { Name = "test" });
list.Add(new Value() { Name = "second" });
dataGrid.DataSource = list;
After inserting, editing, deleting… how can I retrieve a List<Value> from the DataGridView?
The gridview edits your existing list.
The
listwill reflect the current contents of the gridview.