Hello Med. 

> Add a calculated field  to the dataset ( bdel)
 >  Abort the deletion in  afterdelete event of dataset  
 >   Set bDel  field to true.

Huh, it is exactly what I was thinking.
If you have access the dataset and may add a new column/boolean:  "Mark as
deleted", this will be the best.
And before dataset.ApplyUpdates" is called, first delete all the rows that
have "Mark as deleted" = true.

But if you are not allowed to add a new column in dataset, I do not see how
to do.

>   But how to set status to uDeleted ?

IMHO, adataset.updatestatus (usInserted,  usModified or usDeleted) is
read-only.
You may not change it manually.
(But maybe I am wrong, I did not check it).

> Error : abort  delet  in beforeDelete event  

Sorry, I dont understand, please explain better.

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


_______________________________________________
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to