Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataSet w/ Multiple Tables
Message
From
29/04/2004 10:42:53
 
 
To
29/04/2004 10:38:40
Mindy Shingara
Central Susquehanna Intermediate Unit
Lewisburg, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
00899300
Message ID:
00899348
Views:
18
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform