在数据库的BeforPost中判断?
if 数据库状态包含Delete or Edit or Insert then
  modify:=true;