I have a problem where an insert into a datagrid is failing to register
when the GetChanges method runs during the closing event of the form.
If I perform a delete or an update it works fine. If I insert more then
1 record it also works fine. Any help with this would be very
appreciated. I have included the code below:

private void MCustomerContacts_Closing(object sender,
System.ComponentModel.CancelEventArgs e)
{

//Check if a database update is required
try
{

DataSet dsChanges = dsCustomerContacts.GetChanges();
if (dsChanges != null)
{
DialogResult dResult = MessageBox.Show("The data has changed!
Would you like to save the
changes?","Attention",MessageBoxButtons.YesNoCancel);