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.R ows.Count - 1)
row = Me.DataTable.Ro ws(i)
Select Case row.RowState
Case DataRowState.Ad ded
Return True
Case DataRowState.Mo dified
Return True
Case DataRowState.De leted
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
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.R ows.Count - 1)
row = Me.DataTable.Ro ws(i)
Select Case row.RowState
Case DataRowState.Ad ded
Return True
Case DataRowState.Mo dified
Return True
Case DataRowState.De leted
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
Comment