Data binding update problem
I must be missing something obvious.:o
In VB.Net, I have a windows form. On the form is a SQLDataAdapter, SQLConnection and a dataset. The controls on the form are bound to fields in the dataset. The proper data shows up where it is supposed to. The problem is that if I change the data on the form, it doesn't update the dataset row. According to the on-line help, in the article Introduction to Dataset Updates,
Quote:
In Windows Forms, the data-binding architecture takes care of sending changes from data-bound controls to the dataset, and you do not have to explicitly update the dataset with your own code.
However, it doesn't seem to be working. I created a button with the following code behind it:
VB Code:
Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
MessageBox.Show(DsContact1.Tables(0).Rows(0).RowState.ToString)
End Sub
No matter what changes I make to the record, the result each time when I click the button is "Unchanged". Is there a setting somewhere that I am missing which forces the changes I make on the form to be reflected in the dataset?