0

I have datatable in vb.net 2008 has 40000 rows. i want to delete 1000 rows from that datatable not from database. i want to do this without looping I know remove and removeat but both need looping. is there any way i can achieve this thing ?

2
  • Please do not ask essentially the same question again. It would be better if you edited your original questions and added details to it. Commented May 6, 2010 at 7:14
  • ok sorry i will do that next time. Commented May 6, 2010 at 7:36

1 Answer 1

1

You could use YourDataTable.Take(39000) or YourDataTable.Skip(1000)
Or if there is a critera that should match. Use select , YourDataTable.Select(x => x.Something = "yourvalue"). But this will also loop the collection.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.