You have to run a loop maintaining previous and current rows.
And do the validations there. for eg Cheking Current One is Positive +ve and previous one is negative etc.
Then mark there row indexes for removal, and using another loop remove them.
int index = dt.Rows.IndexOf(dr);
if (index ==1)
{
continue;
}
String previous_Val = Convert.ToString(dt.Rows[index-1]);
String cur_Val = Convert.ToString(dt.Rows[index]);
if(previous_Val.Contains("-"))
{
previous_Val.Replace("-","").Equals(cur_Val);
// Add index-1 and index to a list
}
}
// remove rows at these indexes using a while loop