I found the answer to this problem at this link: http://www.dotnet247.com/247reference/msgs/11/59230.aspx
I posted a quote from that page below: ------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------ Yes, your code snippet worked just fine. Here's the problem that I had. Syntax, syntax, syntax. The following 2 blocks of code do NOT generate the same result!
Dim y As Integer for y = 0 To dvGlobalDataView.Count - 1 Console.WriteLine(dvGlobalDataView(y)("Description")) Next
Dim z As Integer For z = 0 To dvGlobalDataView.Table.Rows.Count - 1 Console.WriteLine(dvGlobalDataView.Table.Rows(z)("Description")) Next
The former sorts and filters as per the .sort and .rowfilter properties and the latter reveals the full table without sort or filter. Today's lesson, RTFM, carefully! ------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------ |