?
?scar Martins
Hi
I have a datable that is linked to a db table. When I delete an
unchanged row and then add a new row with the same values my datatable
stays with a deleted and an added row identical in values. When I
commit the changes into db by Dataadapter.Update is executed a delete
and then one update, although the data remains the same. The
problem/behaviour is that if the table has a relation to other table
and this row has childrows when is deleted it throws an exception and
the update is canceled. This is right, but in the user optic he has
changed nothing and receives a message that he can't delete that row.
What's the best way to deal with this situation?
Thanks in advance
I have a datable that is linked to a db table. When I delete an
unchanged row and then add a new row with the same values my datatable
stays with a deleted and an added row identical in values. When I
commit the changes into db by Dataadapter.Update is executed a delete
and then one update, although the data remains the same. The
problem/behaviour is that if the table has a relation to other table
and this row has childrows when is deleted it throws an exception and
the update is canceled. This is right, but in the user optic he has
changed nothing and receives a message that he can't delete that row.
What's the best way to deal with this situation?
Thanks in advance