Hi Mariano,
All fancy tricks aside (dummy tables etc), the issue is that the DeleteRow() method does not work in all circumstances. The easiest workaround is to move the to be deleted rows to the delete buffer manually:
if dw_main.AcceptText() < 0 then return -1 dw_main.RowsMove ( dw_main.GetRow() , dw_main.GetRow() , Primary! , dw_main,1, Delete! ))
HTH
Lars