The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Deleting records from a DataView

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Michael Mello

Posts: 100
Nickname: knarf
Registered: May, 2004

Michael Mello is .NET Web Developer
Deleting records from a DataView Posted: May 15, 2004 7:36 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Michael Mello.
Original Post: Deleting records from a DataView
Feed Title: melloblog
Feed URL: http://www.thauvin.net/errorpage.htm?aspxerrorpath=/Default.aspx
Feed Description: .NET and Everything After.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Michael Mello
Latest Posts From melloblog

Advertisement
This tip was sent to me by ?d-low?:

?If you're attempting to delete records from a DataView keep in mind that the Count method will return the decremented value each time you invoke the Delete method... so something like... for (int i = 0; i < DataView.Count(); i++) { DataView.Delete(i); } will delete every other record; tricky eh? Try while (DataView.Count()) { DataView.Delete(0); } instead to delete all records (or all filtered records)?

Read: Deleting records from a DataView

Topic: INETA BoF at TechEd Europe Previous Topic   Next Topic Topic: New and Notable 56

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use