Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a row to a dataset
Message
De
06/08/2004 14:08:28
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
06/08/2004 14:06:45
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00931376
Message ID:
00931382
Vues:
21
Actually, it was a mistake on my part. Here is the modified code:

Dim rowNew As DataRow
gModelTagsDS.Tables.Add("header")
rowNew = gModelTagsDS.Tables("header").NewRow()
rowNew("model") = Trim(txtModelNum.Text)
rowNew("modeldesc") = Trim(txtModelDesc.Text)
rowNew("partdesc") = desc
rowNew("quantity") = temp


I didn't have the table set up in my dataset, as I assumed it would automatically be created. Now it says that those columns do not exist in my table, so how do I define my table?

Thanks Kevin!
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform