473,498 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ADO.NET DataSet woes

Tim
Joe,

If the two tables have a relation, then join the two
tables in a query and populate your dataset with the
query, instead of with the data from the tables. Good
luck.

Tim
-----Original Message-----
This is probably really simple, I just haven't figured
out how ADO.NET does it yet.

I have created 2 DataAdapters in Visual Studios .NET C#
from 2 tables in SQL Server related to one another, and
created a DataSet from these 2 tables.

For example:
Table 1: staff_id, type_id
Table 2: type_id, type_name

I want to show the type_name of the currently selected
staff_id.

I have 2 textboxes on a form, one bound to the type_id in
the first table, and the other bound to type_name in the
second.

Is there any way within the Dataset to "bind" these 2
tables together so that moving to the next record in
Table 1 moves to the correct record in Table 2, or do I
have to code this in when the next record is selected?

Thanks for your help,
Joe

.

Nov 22 '05 #1
0 705

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
1701
by: Mark | last post by:
O, woe is me, to have seen what I have seen, see what I see! (That's Shakespeare for those who were wondering what I'm on about) I am "having fun" with cookies. And I wonder if I have...
0
1495
by: Cedric | last post by:
This is a 3 weeks old problem, but having found a solution (and having looked for one here, finding only this message), I'm replying now. From: Jive (someone@microsoft.com) Subject: Upgrade...
0
1069
by: Tim | last post by:
Joe, If the two tables have a relation, then join the two tables in a query and populate your dataset with the query, instead of with the data from the tables. Good luck. Tim ...
3
3439
by: Angel Cat | last post by:
Trying to get my jobs to send mail when job fails. Should be easy but it's giving me headache Had a whole slew of issues. Outlook is installed with a n outlook mail profile set up that can...
2
1816
by: Andrew Thompson | last post by:
- NN 4.78 rendering woes, links at far left - I am trying to rework an old site, make it valid html and css, improving the x-browser and 'older browser' compatibility. My efforts so far, have...
0
2068
by: Arun Bhalla | last post by:
I'm having some inconsistency problems with my deployment project ("Setup") and its custom actions ("Installer"). I'm using Visual Studio .NET 2003 (.NET 1.1, no service pack) on Windows XPSP1. ...
0
1029
by: Paul Sampson | last post by:
Hi, I have a typed dataset working nicely, bound to my datagrid (Windows forms) using stored procs for insert/update/delete. The first column contains the primary key of the base table, so...
2
1005
by: Chad Grooms, MCSD | last post by:
Hey all, I have a question regarding a very big design decision I am facing. I am building an asp.net app with many classes for objects mimicking the database design. It gets more and more...
9
1534
by: Mark Rae | last post by:
Hi, This time, I'm looking for a regular expression which says "the string must contain exactly seven or exactly eight digits" e.g. 123456 fails 1234567 passes 12345678 passes 123456789...
1
1870
by: hdogg | last post by:
Scope Woes - IF statement nested in WHILE statement -PHP I have an array $actuals_sum. <?php while(conditions) { if($i == '24) {
0
7167
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7208
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5464
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4915
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4593
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3095
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1423
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
292
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.