Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referring to DataTable column values
Message
 
À
30/08/2011 10:43:51
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01522272
Message ID:
01522432
Vues:
35
>I've been away from this type of work for a few months and the brain has become rusty. How do I refer to a column value in a DataTable?

The following code gets the "MyColumn" value in the first row of the first table in the DataSet:
object val = this.DataSet.Tables[0].Rows[0]["MyColumn"];
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform