It wasnt until i tried this on a datatable with 40k+ row that i realized how slow it was!Code:Dim num As Integer = DataSet1.Tables(0).Rows.Count - 1 Dim no As String = "No" For n = num To 0 Step -1 DataSet1.Tables(0).Rows(n).Item(2) = no Next
It slows to a crawl and does only 2 loops or so a second (i have a i7 @ 4500Mhz)
Hopefully you're not going to say dont use a datatable as the whole program is built around that datatable and id hate to start again over this final stumbling block for me!!
by the way I tried it like this originally as well...
hope someone can helpCode:For Each dr As DataRow In DataSet1.Tables(0).Rows dr("Tested") = "No" Next![]()





LinkBack URL
About LinkBacks
Reply With Quote










Bookmarks