Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataSet w/ Multiple Tables
Message
De
29/04/2004 10:42:53
 
 
À
29/04/2004 10:38:40
Mindy Shingara
Central Susquehanna Intermediate Unit
Lewisburg, Pennsylvanie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
00899300
Message ID:
00899348
Vues:
17
To add a new row to your table, do something like this:
DataRow dr = dsDetail.Tables["bp_rqac"].NewRow();

dr["ra_reqnr"] = this.txtrq_reqnr.Text;
dr["ra_maj"] = this.txtma_maj.Text;
dr["ra_acct"] = this.txtra_acct.Text;

dr["bo_bldg"] = Session["bldg"];
dr["bo_reqnr"] = Session["reqnr"];
dr["bo_maj"] = Session["major"];
dr["bo_smaj"] = Session["subMajor"];
dr["bo_min"] = this.txtic_min.Text;

dsDetail.Tables["bp_rqac"].Rows.Add(dr);
~~Bonnie



>My fault, bad explanation....I do understand that. When I run debugger and look at the table name in my datatable, it shows me table ("bp_rqac"), but not table ("bp_bidod"). I want to add a new record to my dataset ("dsDetail") and fill in that new, blank row which contains fields from both tables listed above. How do I go about this?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform