-
textbox binding?
ok, i've managed to get a textbox to accept a value from a dataset, but how do you change the dataset value according to what was entered in the text box?
I used this code to bind the textbox...
txtProject.DataBindings.Add(New Binding("text", oDataSet, "Projects.ProjectId"))
-
By using DataBinding then it will automatically sync what is in the textbox with what is in the dataset. You just have to sync those changes if any to the database, but that can be done at any time not just when the changes occur.