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:
For i = 0 To dv.Count - 1 'dv(i).BeginEdit() Console.WriteLine(dv(i)("Machine") & ": " & dv(i)("Display")) 'dv(i).EndEdit() Next
The code below shows all the details correctly.
VB Code:
Dim myDRV As DataRowView For Each myDRV In dv Console.WriteLine(myDRV("Machine") & ": " & myDRV("Display")) Next
As I said I am new to VB.Net so if someone could point out my mistake it would be appreciated.
Regards,
Adam.




Reply With Quote