Hi All,

I am new to VB.Net and I have noticed somthing strange with dataviews.
The code below does not move through the dataview but displays only the results for the first record.

VB Code:
  1. For i = 0 To dv.Count - 1
  2.             'dv(i).BeginEdit()
  3.             Console.WriteLine(dv(i)("Machine") & ": " & dv(i)("Display"))
  4.             'dv(i).EndEdit()
  5.         Next

The code below shows all the details correctly.
VB Code:
  1. Dim myDRV As DataRowView
  2.         For Each myDRV In dv
  3.             Console.WriteLine(myDRV("Machine") & ": " & myDRV("Display"))
  4.         Next

As I said I am new to VB.Net so if someone could point out my mistake it would be appreciated.

Regards,
Adam.