考虑下面的代码:
DataView deletedLOV = new DataView(tbltmp, "prociLOV_Deleted=1", "prociLOV_ID",
DataViewRowState.CurrentRows);
DataView addedLOV = new DataView(tbltmp, "prociLOV_Id>1", "prociLOV_ID",
DataViewRowState.CurrentRows);
int deletedLOVcount=deletedLOV.Table.Rows.Count;
int addedLOVcount=addedLOV.Table.Rows.Count;
删除记录时,prociLOV_Deleted 设置为 1。
但是即使没有记录被删除,deletedLOVcount 返回值 1。也与 addedLOVcount 相同,当没有 proci_ID>1 的记录时,它也返回计数为 1