New at ADO.NET Editing Data
-
Hi, I didn't know where I should post this, but because it is ADO.NET, it would be the best place (but I have posted in the C# forum also). Anyway, I have a question, I have created a datasource to the northwind database and created a simple windows form. With the first name, last name textboxes etc. and to select the employees I use the listbox with the employees last names in it. I have added an the TextBox_Validate Event to each textbox with the code:
private void TextBox_Validated(object sender, EventArgs e) { employeesTableAdapter.Update(northwndDataSet1.Employees); employeesTableAdapter.Fill(northwndDataSet1.Employees); }
Yet, when I change a name, and then tab or click somewhere else, it doesn't update the database with the new name. What am I doing wrong? Thanks, Any reply is appreciated.