Abdelghafour
New member
- Joined
- Nov 3, 2008
- Messages
- 4
- Programming Experience
- Beginner
Hi,
I have 2 problems with the haschages method
1 : when i do like this:
the haschanges method returns always true even if i odes not made any change to the data.
2:
I'm using the bindingnavigator, when i navigate between the rows the haschanges method returns always true even if i does not made any change to the data
this is stranger
the endedit method seems mading a change in the dataset
please help
I have 2 problems with the haschages method
1 : when i do like this:
VB.NET:
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Me.Validate()
Me.DataTable1BindingSource.EndEdit()
If Me._dataSet1.HasChanges() Then
If MessageBox.Show("DS has changes. Really exit?", "", MessageBoxButtons.YesNo) = Windows.Forms.DialogResult.No Then e.Cancel = True
End If
End Sub
2:
I'm using the bindingnavigator, when i navigate between the rows the haschanges method returns always true even if i does not made any change to the data
this is stranger
the endedit method seems mading a change in the dataset
please help