I have the follow function for detecting when my bound dataset has
changed (by the user, I hope).
Public Function HasFormChanges() As Boolean
Dim row As DataRow
Dim i As Integer = 0
For i = 0 To (Me.DataTable.Rows.Count - 1)
row = Me.DataTable.Rows(i)
Select Case row.RowState
Case DataRowState.Added
Return True
Case DataRowState.Modified
Return True
Case DataRowState.Deleted
Return True
End Select
Next
Return False
End Function
However, now that I know *something* has changed, I'd like to know what.
Is there any way for me to know what column header holds the value that
is added, modified or deleted?
--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com