Remove from DataRow[]

  • Thread starter Thread starter john pp nn
  • Start date Start date
J

john pp nn

Guest
Hi folks,

I have





DataRow[] foundRows = GetData(); // 100 rows

for (int i = foundRows.Length - 1; i >= 0; i--)

{

bool hasOrder = true;

hasOrder = someFunction();

if (hasOrder == false) // always false

foundRows.Delete();

}




At this point, I still have 100 rows.

Why are they still there?

There is no foundRows.AcceptChanges() method that I can call.

THanks,

J


jppnn

Continue reading...
 
Back
Top