I have a winform whit this load event to retrieve a User from the database:
userController = new UsuarioAD(); userDS = UserController.GetUsuarioByLogin("test"); //Return a filled datased textBoxNombre.DataBindings.Add(new Binding("Text", userDS, "Usuario.nombre")); |
in the button save event I have:
userController.UpdateUser(userDS); |
userDS is a private variable (DataSet) and userController is the Bussines Object that update and retrieve the dataset.
I change the value from the textBoxNombre.text property and tried to save changes but it dosn't works.
I have tested the Bussines Object whit a console application and it works fine, but whit the WinForm application it dosn't work.
What is wrong
I have looked in the dataset userDS before the userController.UpdateUser(userDS) sentence, and it has the new data, but the rowstate flag is Unchanged.
Why
Is these the problem

Problems updating dataset changes
Ygor Goldberg