nelson.enlis
Member
- Joined
- Feb 16, 2009
- Messages
- 8
- Programming Experience
- Beginner
Hi,
I try compare two dataTables. Here a example:
But, This doesn't work.
I try to debug this sequence but I'm not shure what is the problem.
When the SQL table changes (Because a value is inserted with SQL query), the refresh method make that 'Dt' refresh. After refresh the 'OldDt' take apparently the same data values that 'Dt' (Is how if 'oldDt' was LINKED to 'Dt')
Any idea ?
best regards
I try compare two dataTables. Here a example:
VB.NET:
OldDt = Dt ' The idea is keep the old values before refresh the dataTable
refresh(Dt) ' refresh this dataTable with the SQL Table.
If Equals(OldDt, Dt) Then
Debug.WriteLine("true")
Else
RaiseEvent TableChange() ' its a trigger for detect changes
Debug.WriteLine("false")
End If
But, This doesn't work.
I try to debug this sequence but I'm not shure what is the problem.
When the SQL table changes (Because a value is inserted with SQL query), the refresh method make that 'Dt' refresh. After refresh the 'OldDt' take apparently the same data values that 'Dt' (Is how if 'oldDt' was LINKED to 'Dt')
Any idea ?
best regards
Last edited: