FreeriderUK
Well-known member
Hi all - I think this is the right place for this...
I would like to add some kind of indicator to show data has changed in MyDataset, so the user knows they need to click the save button to update the database.
I'm using a number of bound textboxes on a Windows Form and have tried putting this code in the CustomerNameTextBox.Leave event:
If MyCustomersDataSet.HasChanges = True Then
Me.Text="Data Changed"
End If
but the HasChanges thing doesn't seem to be working - it doesn't detect the change.
I must be missing something here. I thought that when you change the text in a databound textbox, it was changing the data in the dataset.
Or, is there another way of doing this?
I would like to add some kind of indicator to show data has changed in MyDataset, so the user knows they need to click the save button to update the database.
I'm using a number of bound textboxes on a Windows Form and have tried putting this code in the CustomerNameTextBox.Leave event:
If MyCustomersDataSet.HasChanges = True Then
Me.Text="Data Changed"
End If
but the HasChanges thing doesn't seem to be working - it doesn't detect the change.
I must be missing something here. I thought that when you change the text in a databound textbox, it was changing the data in the dataset.
Or, is there another way of doing this?