Re: Dumb question #102
From: Cor (non_at_non.com)
Date: 02/08/04
- Next message: Cor: "Re: Am I wrong"
- Previous message: Patrick Huffer: "Re: Parent-child + Datagrids"
- In reply to: Martin Robins: "Re: Dumb question #102"
- Next in thread: Martin Robins: "Re: Dumb question #102"
- Reply: Martin Robins: "Re: Dumb question #102"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 8 Feb 2004 22:25:03 +0100
Hi Martin,
If you do not want the relations, you can choose for the datatable.select
and/or you can use the dataview.rowfilter or even a normal loop throught the
tables, it is on you how to use it.
Cor
> Sorry guys, everybody seems to be missing the question.
>
> I have a typed DataSet with multiple, related tables and the relationships
> set up. I want to loop through a table, and be able to pull out data from
> the related tables. For example (using the example tables I provided
> originally)
>
> Accounts MR1, Martin, 1, 2
> MR2, David, 2, 3
> MR3, Stephen, 1, 3
>
> Status 1, On Hold
> 2, Trading
> 3, Legal
>
> Controller 2, Bob
> 3, Terry
>
> I want to be able to loop through the Accounts table, pulling out:
>
> MR1, Martin, On Hold, Bob
> MR2, David, Trading, Terry
> MR3, Stephen, On Hold, Terry
>
> I want to do this programatically; how do I loop through the tables
> correctly to pull out this data?
> I can loop through the Accounts table without problem, [foreach (DataRow
row
> in ds.Tables["Accounts"].Rows) {}], but how do I pull the related data
from
> Status and Controller for each row that I process?
>
> Cheers.
>
>
- Next message: Cor: "Re: Am I wrong"
- Previous message: Patrick Huffer: "Re: Parent-child + Datagrids"
- In reply to: Martin Robins: "Re: Dumb question #102"
- Next in thread: Martin Robins: "Re: Dumb question #102"
- Reply: Martin Robins: "Re: Dumb question #102"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|