Dataview Table.Rows.Count is retuned 1 when there is no such rows

Mkv_mHD

New Member
consider the code below:\[code\]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;\[/code\]prociLOV_Deleted is set to 1 when a record is deleted.But even when no records are deleted the deletedLOVcount return value 1.Also the same with addedLOVcount when there is no record with proci_ID>1 ,it too returns count as1
 
Back
Top