I'm using Visual Studio 2015, building a Windows Forms project. I'm a web programmer by trade, but was tasked to create this project. I've gone through a couple dozen questions on SO, so before you knock me for a repeat question, I've been coming through a lot of mostly unanswered questions on here for over an hour, and I still can't find a solution. Here is what I've done so far:
1) Created a project in VS2015
2) Added a Service-based database
3) Created a table in said database
4) Created a form
5) On the Data Sources tab, I found my table, used the dropdown to change to DataGridView, then dragged-and-dropped it onto my form.
6) Back on the Data Sources tab, I found my table, used the dropdown to change to Details, then dragged-and-dropped it onto my form.
I Ran the project, it will add, edit and delete records on the form. But when I close the form and go to the Server Explorer, right click on my table and choose "Show Table Data", none of the records saved.
I looked at the code behind the "Save" button and it looks like this:
private void testOneBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
this.Validate();
this.testOneBindingSource.EndEdit();
this.tableAdapterManager.UpdateAll(this.cII_LocalDataSet);
}
What am I missing?