deleting related records

K

Konrad

Hi

I have strongly typed data set.
I want to delete record in one table.
It has related tables (it is parent table).
How to load all related records from child tables
and delete them (and also discover and delete they children records) to have
possibility to delete parent record.

Thanks
Konrad
 
G

Grzegorz Danowski

U¿ytkownik "Konrad said:
Hi

I have strongly typed data set.
I want to delete record in one table.
It has related tables (it is parent table).
How to load all related records from child tables
and delete them (and also discover and delete they children records) to
have
possibility to delete parent record.

Why do you want to load to your dataset all related records? Why don't you
run sql command in your database? Do you want to show user all records that
will be deleted?

Regards,
Grzegorz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top