Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataView/DataSet/DataReader
Message
De
08/01/2007 12:21:35
 
 
À
08/01/2007 12:16:15
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
01183234
Message ID:
01183482
Vues:
45
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform