J
John Sheppard
Hello there,
I have the following code; I do this as a work around for a
dataset.haschanges method which doesnt appear to work correctly either
For Each dt As DataTable In myDs.Tables
If Not dt.GetChanges(DataRowState.Added) Is Nothing Then hasChanges=true
If Not dt.GetChanges(DataRowState.Modified) Is Nothing Then
hasChanges=true
If Not dt.GetChanges(DataRowState.Deleted) Is Nothing Then
hasChanges=true
Next
On some (not all) of my datatables in the dataset, Visual Studio is claming
that certain columns do not exist when I hit the first dt.getchanges line.
The column that it claimes does not exist are not in the datatable
(according to the dataset visualiser)
I have tried regenerating my dataset.
Does anyone know what could be going on?
I cant figure it out...
Thank you
John
I have the following code; I do this as a work around for a
dataset.haschanges method which doesnt appear to work correctly either
For Each dt As DataTable In myDs.Tables
If Not dt.GetChanges(DataRowState.Added) Is Nothing Then hasChanges=true
If Not dt.GetChanges(DataRowState.Modified) Is Nothing Then
hasChanges=true
If Not dt.GetChanges(DataRowState.Deleted) Is Nothing Then
hasChanges=true
Next
On some (not all) of my datatables in the dataset, Visual Studio is claming
that certain columns do not exist when I hit the first dt.getchanges line.
The column that it claimes does not exist are not in the datatable
(according to the dataset visualiser)
I have tried regenerating my dataset.
Does anyone know what could be going on?
![Frown :( :(](/styles/default/custom/smilies/frown.gif)
Thank you
John