473,327 Members | 2,094 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

DataRelations Link Question Win [C#]

Hi Everyone,

Is it possible to link more than two tables together? My sample that works
perfectly fine (but only the two links) is as follows:

DataRelation TableDetail =
DB_DataSet.Relations.Add("EMPLOYEE_ASSIGNED_LEVELS ",
DB_DataSet.Tables["EMPLOYEE_ZONE"].Columns["EMP_ID"],
DB_DataSet.Tables["EMPLOYEE_ASSIGNED_LEVELS"].Columns["EMP_NUMBER"]);

Any and all help is appreciated

Thanks

MikeY
Oct 12 '07 #1
1 1110
Yippy I found it......I think. Anyhow heres the code that I've located.

DataRelation TableDetail =
DB_DataSet.Relations.Add("EMPLOYEE_ASSIGNED_LEVELS ",new
DataColumn[]{DB_DataSet.Tables["EMPLOYEE_ZONE"].Columns["EMP_ID"]},new
DataColumn[]
{DB_DataSet.Tables["EMPLOYEE_ASSIGNED_LEVELS"].Columns["EMP_NUMBER"],DB_DataSet.Tables["EMPLOYEE_INTRANET"].Columns["EMP_NUMBER"]});

I know there is also another way to do it, but, this is good for me

Thanks eveyone.

"MikeY" <mi*******@yahoo.comwrote in message
news:e0**************@TK2MSFTNGP06.phx.gbl...
Hi Everyone,

Is it possible to link more than two tables together? My sample that works
perfectly fine (but only the two links) is as follows:

DataRelation TableDetail =
DB_DataSet.Relations.Add("EMPLOYEE_ASSIGNED_LEVELS ",
DB_DataSet.Tables["EMPLOYEE_ZONE"].Columns["EMP_ID"],
DB_DataSet.Tables["EMPLOYEE_ASSIGNED_LEVELS"].Columns["EMP_NUMBER"]);

Any and all help is appreciated

Thanks

MikeY


Oct 12 '07 #2

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

Similar topics

1
by: Les | last post by:
I have a problem getting Dataset.WriteXml() to create a nested xml realtionship. All I get is an inline xsd (all nodes are children of the root). Documentation says to use...
8
by: sudhirlko2001 | last post by:
How to swap two nodes of doubly Linklist
0
by: Randy | last post by:
I have two DataTables in a DataSet. I create a DataRelation between two like-typed columns in the first and second tables, and it works exactly as expected. Unfortunately, the default behavior...
1
by: Fleckman | last post by:
I have a DataSet with 14 DataTables and 18 Relationships that were defined within Visual Studio .NET 2003. Everything looks OK in the visual development environment, i.e. when I preview the DataSet...
1
by: Lerp | last post by:
Hi all, I have a dataset made up of 3 tables that is bound to a datalist. On the itemdataBound event I call a sub that grabs a value (an id value) from the current row being outputted, queries...
0
by: George Durzi | last post by:
I have a DataSet with 3 tables, and two DataRelations dsSubs.Tables.TableName = "Subscriptions" dsSubs.Tables.TableName = "AccountManagers" dsSubs.Relations.Add "AccountManagers_Subscriptions",...
3
by: Carlos Albert | last post by:
Hello everybody, I'm using some gridviews with datalists inside template columns. Now, for each datalist I'm calling a method returning a dataset (depending from a column from the gridview). ...
7
by: Kurda Yon | last post by:
Hi everybody, I cannot understand the following thinks. The last line of the fillowing code produces a message about mistake (not a valid MySQL- Link resource): $link = mysql_connect(...
0
by: Vajrala Narendra | last post by:
hi all, am working in asp.net i am using two data entry screens for parent and child tables. i heard that using datarelations we can achieve this using single screen. is it ppossible? please...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.