I am trying to delete rows from a Dataset based on a certain condition being met. I am using the following code which validates the condition but not all of the rows that show be deleted are deleted. I am hoping someone can shed some light on what I am doing wrong.
For i As Integer = 0 To ds.Tables("search_result").Rows.Count - 1
Dim dr As DataRow = ds.Tables("search_result").Rows(i)
If Check_Status(dr("IDNum")) = False Then