J
Jorge
Hello all!,
I have a dataset with just one DataTable : "titles" (using pubs
database). I want to delete a specific DataRow, the problem is that
"titles" is related with the table "sales" on the field "title_id",
and when I try to delete the record, ADO.NET throws me an exception
....
Dim table As DataTable = dataset.Tables("titles")
table.Rows(0).Delete()
dataadapter.Update(dataset, "titles") 'error!
I know I can to create DataRelations between DataTables, but in this
case I just have one DataTable. How can I delete the related records
too? Do I need to use a Command object before the Delete method??
I'm confused! ...
Any suggestion will be appreciated ...
Robert
I have a dataset with just one DataTable : "titles" (using pubs
database). I want to delete a specific DataRow, the problem is that
"titles" is related with the table "sales" on the field "title_id",
and when I try to delete the record, ADO.NET throws me an exception
....
Dim table As DataTable = dataset.Tables("titles")
table.Rows(0).Delete()
dataadapter.Update(dataset, "titles") 'error!
I know I can to create DataRelations between DataTables, but in this
case I just have one DataTable. How can I delete the related records
too? Do I need to use a Command object before the Delete method??
I'm confused! ...
Any suggestion will be appreciated ...
Robert