Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Viewing sorted rows in dataview
Message
From
22/07/2005 15:15:51
 
 
To
22/07/2005 12:11:17
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB.NET 1.1
Database:
MS SQL Server
Miscellaneous
Thread ID:
01035153
Message ID:
01035254
Views:
15
This message has been marked as the solution to the initial question of the thread.
Mike,

You want to iterate through your DataView, not through the Table:
        Dim row As DataRowView
        For Each row In ModelDV
            MsgBox(row("PartName"))
        Next
~~Bonnie



>Anybody know why these records aren't sorted when they go through the MessageBoxes?
>
>
> Dim ModelDV As DataView
> ModelDV = New DataView(ds1.Tables("detail"))
> ModelDV.Sort = "Gauge, WColor, HighTemp, JobName11, PartName, Model_No"
>
>
> Dim row As DataRow
> For Each row In ModelDV.Table.Rows
> MsgBox(row("PartName"))
> Next
>
>Thanks...
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform