W
Woody Splawn
I have a form based on a dataset containing two tables. When I issue an
update for the dataset it works when I issue it for one table but not for
the other. In the second instance I modify a field in a grid but when I do
the update it does not think anything has changed. That is, At the time I
do the save I call a routine as follows:
Private Sub UpdateARD()
Me.BindingContext(DsMain1, "Ard").EndCurrentEdit()
Dim ModifiedChildRecords As DataTable =
DsMain1.Ard.GetChanges(DataRowState.Modified)
If ModifiedChildRecords Is Nothing Then
MsgBox("There there are NO modified records in ARD")
Else
MsgBox("THERE ARE modified records in ARD")
End If
... Rest of code
End Sub
I am getting back a message that says that there are NO modified records but
don't understand why. Anyone know what might be causing this?
update for the dataset it works when I issue it for one table but not for
the other. In the second instance I modify a field in a grid but when I do
the update it does not think anything has changed. That is, At the time I
do the save I call a routine as follows:
Private Sub UpdateARD()
Me.BindingContext(DsMain1, "Ard").EndCurrentEdit()
Dim ModifiedChildRecords As DataTable =
DsMain1.Ard.GetChanges(DataRowState.Modified)
If ModifiedChildRecords Is Nothing Then
MsgBox("There there are NO modified records in ARD")
Else
MsgBox("THERE ARE modified records in ARD")
End If
... Rest of code
End Sub
I am getting back a message that says that there are NO modified records but
don't understand why. Anyone know what might be causing this?