DataRow的RowState属性(状态)取值有5种:Detached, Unchanged, Added, Deleted, Modified.
Detached = 1,(该行已被创建,但不属于任何DataRowCollection)
Unchanged = 2,(未更改的行)
Added = 4, (一个新行)
Deleted = 8,(已删除的行)
Modified = 16,(已修改的数据)
例如判断一行是否已经删除
if dr.RowState=8 then
msgbox("是删除的行")
end if