I would ask them to use your Form OnClosing event. Something like this should do the trick:
Private Sub YourDataGridViewForm_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing If MessageBox.Show(Me, "Do you want to save your changes?", "Unsaved Changes!", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) = Windows.Forms.DialogResult.Yes Then SaveChanges() End If End Sub Private Sub SaveChanges() MessageBox.Show("Changes saved...") End Sub
source share