goneWildCoder
Programmer
I want to ensure that the changes made to a dataset are updated to the table when the form is closed so that any uncommitted changes are taken care of. Here is my form closing event method -->
private void DivFrmClosing(object sender, System.ComponentModel.CancelEventArgs e)
{
DataSet changedData = dataSet11.GetChanges();
if (changedData != null)
i = dbUpdate(); // method to update table
...
..
}
For some reason, changedData remains null even when I have uncommitted changes in the dataset. I am using similar code for the OK button and it works just fine.
Please help !!
private void DivFrmClosing(object sender, System.ComponentModel.CancelEventArgs e)
{
DataSet changedData = dataSet11.GetChanges();
if (changedData != null)
i = dbUpdate(); // method to update table
...
..
}
For some reason, changedData remains null even when I have uncommitted changes in the dataset. I am using similar code for the OK button and it works just fine.
Please help !!