Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
Generalxml file Pin
jphuphilly21-Aug-03 2:59
jphuphilly21-Aug-03 2:59 
GeneralRe: xml file Pin
Julian Bucknall [MSFT]21-Aug-03 5:11
Julian Bucknall [MSFT]21-Aug-03 5:11 
GeneralRe: xml file Pin
jphuphilly22-Aug-03 3:45
jphuphilly22-Aug-03 3:45 
GeneralRe: xml file Pin
Manster22-Aug-03 4:28
Manster22-Aug-03 4:28 
GeneralRe: xml file Pin
Julian Bucknall [MSFT]22-Aug-03 5:51
Julian Bucknall [MSFT]22-Aug-03 5:51 
GeneralRe: xml file Pin
Julian Bucknall [MSFT]22-Aug-03 10:27
Julian Bucknall [MSFT]22-Aug-03 10:27 
GeneralDataSet Relations Pin
totig21-Aug-03 1:06
totig21-Aug-03 1:06 
GeneralRe: DataSet Relations Pin
xoph21-Aug-03 1:52
xoph21-Aug-03 1:52 
I suggest you create a typed dataset with both your tables in it. When you create a typed dataset, the typed dataset class will automatically include a method to find rows by the primary key. (Make sure the primary key is defined in all your tables in your dataset!)
For example, if your table is called "Product" and has "ProductID" as primary key, the typed dataset will provide a method called FindByProductID(int value).

You can iterate throuh the rows collection of your second table, get the productid of the current row and then go to the first table and retrieve the related record by calling FindByProductID.

That is 1 way of doing it without data relations.

Of course you could also create a data relation in your dataset, and use getchilds or getparent methods in the dataset to navigate along foreign keys.

:-OChris
GeneralRe: DataSet Relations Pin
totig21-Aug-03 2:29
totig21-Aug-03 2:29 
GeneralRe: DataSet Relations Pin
xoph23-Aug-03 0:23
xoph23-Aug-03 0:23 
GeneralRe: DataSet Relations Pin
xfqiu21-Aug-03 21:35
xfqiu21-Aug-03 21:35 
GeneralA Question about Remoting Pin
Mazdak20-Aug-03 23:49
Mazdak20-Aug-03 23:49 
GeneralRe: A Question about Remoting Pin
shaunAustin21-Aug-03 3:09
shaunAustin21-Aug-03 3:09 
GeneralRe: A Question about Remoting Pin
Mazdak21-Aug-03 20:38
Mazdak21-Aug-03 20:38 
GeneralRe: A Question about Remoting Pin
Mazdak21-Aug-03 21:30
Mazdak21-Aug-03 21:30 
GeneralRe: A Question about Remoting Pin
shaunAustin21-Aug-03 22:04
shaunAustin21-Aug-03 22:04 
GeneralI know it's a silly thing, but this is giving me hassle... Pin
The_Preacher20-Aug-03 23:04
The_Preacher20-Aug-03 23:04 
GeneralRe: I know it's a silly thing, but this is giving me hassle... Pin
MeisterBiber21-Aug-03 4:06
MeisterBiber21-Aug-03 4:06 
GeneralRe: I know it's a silly thing, but this is giving me hassle... Pin
Alvaro Mendez21-Aug-03 11:11
Alvaro Mendez21-Aug-03 11:11 
GeneralAsynchronous Delegates Pin
Ryan Binns20-Aug-03 17:18
Ryan Binns20-Aug-03 17:18 
GeneralRe: Asynchronous Delegates Pin
J. Dunlap20-Aug-03 18:06
J. Dunlap20-Aug-03 18:06 
GeneralRe: Asynchronous Delegates Pin
Ryan Binns20-Aug-03 18:14
Ryan Binns20-Aug-03 18:14 
GeneralRe: Asynchronous Delegates Pin
J. Dunlap20-Aug-03 18:19
J. Dunlap20-Aug-03 18:19 
GeneralRe: Asynchronous Delegates Pin
Ryan Binns20-Aug-03 18:57
Ryan Binns20-Aug-03 18:57 
GeneralRe: Asynchronous Delegates Pin
J. Dunlap20-Aug-03 19:05
J. Dunlap20-Aug-03 19:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.