编辑后(datacolchanged等事件),写代码查找后台的表,是否还存在。
Dim fdr As DataRow = e.DataTable.SqlFind("[_Identify] = " & e.DataRow("_Identify"))
If fdr Is Nothing then
msgbox("此行已经被删除")
End If