Do you want to save your changes?
This is a simple question. I've searched for the answer, but no luck.
I want to check a datagrid for changes when a user clicks the 'X' to close the form. If the datagrid has changes, then I want to display a message "Would you like to save your changes . . "
I put my code in the form_closing event.
If MyDataSet.HasChanges() Then . . . .
In this event, the MyDataSet.HasChanges() returns false.
What event should I use?
Thanks for the help.
This is a simple question. I've searched for the answer, but no luck.
I want to check a datagrid for changes when a user clicks the 'X' to close the form. If the datagrid has changes, then I want to display a message "Would you like to save your changes . . "
I put my code in the form_closing event.
If MyDataSet.HasChanges() Then . . . .
In this event, the MyDataSet.HasChanges() returns false.
What event should I use?
Thanks for the help.