How can we find DataTable Changes
If we wanted to know DataSet is changed or not, we have HasChanges funcion. But we don't have the similar function for DataTable.
Below example helps you on that:
Public
Function DTHasChanges(ByVal DT As DataTable) As BooleanIf DT Is Nothing Then
Return (False)
Else
BindingContext(DT).EndCurrentEdit()
If DT.GetChanges Is System.DBNull.Value Then
Return (False)
Else
Return (True)
End If
End If
End Function
That's it.... Hope this helps!!