Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataView/DataSet/DataReader
Message
From
08/01/2007 12:21:35
 
 
To
08/01/2007 12:16:15
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
01183234
Message ID:
01183482
Views:
44
>You can also scroll it like this in VB.NET:
>
>
>For Each row As DataRow in ds1.tables("table_name").Rows
>     MsgBox(row("field_name"))
>Next
>
Yes, but in most cases, where I scroll, I need to lay out the details in a table such as:
        For lnCounter = 0 To lnYourRecordCountOfTheDataSetHere
            loRow = loDataProvider.oDataSet.Tables(YourAlias).Rows(lnCounter)
            lnAmount = loRow("MaxOrdAmt")
            lcHtml=lcHtml + "<TR>"
            lcHtml=lcHtml + "<TD ALIGN=RIGHT>" + (lnCounter + 1).ToString + "."
            ...
        Next
where the first column is the representation of the line number.

But, your approach would be better in other circumstances as we wouldn't have to deal with lnCounter.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform