Using vb.net in Visual Studio 2008.
I have a form with bound fields. The datasource is a datatable (Releases) within a dataset (DS).
All is fine, but if I enter text into a field and then close the form without leaving the field, I lose what I've entered in that field.
I trap the form closing event and make the following tests:
But then if I test for changes, DS.Releases.Rows(0).RowState is Unchanged and DS.HasChanges is false.
The form is used for displaying a single record at a time and so the row being used is always row zero. The same happens if the use selects the Save option from the menu.
Is there any way I can save the current contents of a field if the user does not move out of it before closing the form?