G
Guest
I am trying to use some code example from MSDN like the following:
Try
SqlDataAdapter1.Update(DataSet1User21, _
"Shippers")
PopulateGridFromDB()
Catch ex As Exception
...
But for some reason it doesn't work for me this way. Each time an error
occours on the Update, instead of an exception being caught, all I see is
that no exception was thorwn, but the DataRows in the DataSet were populated
with error messages.
Is this configurable? How do I make the system just to throw the exception
so that my code can catch?
Thanks
Feng
Try
SqlDataAdapter1.Update(DataSet1User21, _
"Shippers")
PopulateGridFromDB()
Catch ex As Exception
...
But for some reason it doesn't work for me this way. Each time an error
occours on the Update, instead of an exception being caught, all I see is
that no exception was thorwn, but the DataRows in the DataSet were populated
with error messages.
Is this configurable? How do I make the system just to throw the exception
so that my code can catch?
Thanks
Feng