G
Guest
I am stumped. I have a strongly-typed dataset with many related tables. I
delete a row using Rows.Find to get the row and then call Row.Delete.
However, even though it is no longer visible in the DataSet, calls to
GetChanges and DefaultView after RowStateFilter = DataViewRowState.Deleted
come up with Nothing and 0 respectively.
Also, calling the Update command for the DataTable table that owns this Row
does not delete the value in the database.
I also tried a raw ds.tables(0).Rows(0).Delete and still no effect. The row
I am trying to delete is a parent row to other rows and the DataSet relation
is setup to Cascade on Delete (so is the SQL Server database).
The Row.Delete seems to be working like Row.Remove.
If I wip up a simple untyped example it works just fine.
delete a row using Rows.Find to get the row and then call Row.Delete.
However, even though it is no longer visible in the DataSet, calls to
GetChanges and DefaultView after RowStateFilter = DataViewRowState.Deleted
come up with Nothing and 0 respectively.
Also, calling the Update command for the DataTable table that owns this Row
does not delete the value in the database.
I also tried a raw ds.tables(0).Rows(0).Delete and still no effect. The row
I am trying to delete is a parent row to other rows and the DataSet relation
is setup to Cascade on Delete (so is the SQL Server database).
The Row.Delete seems to be working like Row.Remove.
If I wip up a simple untyped example it works just fine.