Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing values in a dataview
Message
From
18/01/2006 12:06:34
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
18/01/2006 11:45:52
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
01088036
Message ID:
01088046
Views:
9
This message has been marked as a message which has helped to the initial question of the thread.
>I know how to do it this way:
>
>
> Dim myDRV As DataRowView
>  Dim i As Integer
>
>  For Each myDRV In myView
>    For i = 0 To myView.Table.Columns.Count - 1
>      Console.Write(myDRV(i) & vbTab)
>    Next
>    Console.WriteLine()
>  Next
>
>
>But how about when I know there is only 1 row in the dataview? With datatables you can do dt1.rows(0)("field") but I can't seem to do the same with a dataview.
>
>Thanks,
>MAC

myView(0)("field")

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform