Re: [ADVANCED-DOTNET] Filtering DataSets

2002-06-23 Thread Ian Griffiths
True - I was just asking a related question. Sorry - I should have made that more clear. And I think I've answered it. As far as I can tell DataRowView.CreateChildView does exactly what I was interested in: DataView tableView = new DataView(orderTable); DataView relatedChildren = tableView

Re: [ADVANCED-DOTNET] Filtering DataSets

2002-06-21 Thread kojiishi
many-to-one is possible. -Original Message- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED]] On Behalf Of Ben Kloosterman Sent: Friday, June 21, 2002 11:52 AM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Filtering DataSets Yes I agree with Ian , but

Re: [ADVANCED-DOTNET] Filtering DataSets

2002-06-21 Thread Chris Anderson
> -Original Message- > From: Ian Griffiths [mailto:[EMAIL PROTECTED]] > I can see how I can use this when there is just 1 row in the > child table corresponding to a row in the parent table. But > what if there are many? For example, support my parent table > is Orders and my child table

Re: [ADVANCED-DOTNET] Filtering DataSets

2002-06-21 Thread Chris Anderson
Original Message- > From: Beauchemin, Bob [mailto:[EMAIL PROTECTED]] > Sent: 20 June 2002 00:41 > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] Filtering DataSets > > > If you actually have both DataTables in the DataSet already, > you could add a relationship

Re: [ADVANCED-DOTNET] Filtering DataSets

2002-06-21 Thread Chris Anderson
nal Message- > From: Alexander, William [mailto:[EMAIL PROTECTED]] > Sent: 19 June 2002 22:03 > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] Filtering DataSets > > > You can create a relationship between DataTables in a DataSet > which will allow you to do this

Re: [ADVANCED-DOTNET] Filtering DataSets

2002-06-21 Thread Beauchemin, Bob
titleauthor b where a.au_id = b.au_id Hope this helps, Bob Beauchemin [EMAIL PROTECTED] -Original Message- From: Griffiths, Ian Sent: Thursday, June 20, 2002 1:54 PM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Filtering DataSets I can see how I can use this when there is j

Re: [ADVANCED-DOTNET] Filtering DataSets

2002-06-20 Thread Justin Rudd
Ian Griffiths stated: > I can see how I can use this when there is just 1 row in the child table > corresponding to a row in the parent table. But what if there are many? > For example, support my parent table is Orders and my child table is Order > Details - I don't see how I can use the expres

Re: [ADVANCED-DOTNET] Filtering DataSets

2002-06-20 Thread Ben Kloosterman
:[EMAIL PROTECTED]]On Behalf Of Ian Griffiths Sent: Friday, 21 June 2002 4:54 AM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Filtering DataSets I can see how I can use this when there is just 1 row in the child table corresponding to a row in the parent table. But what if there are many

Re: [ADVANCED-DOTNET] Filtering DataSets

2002-06-20 Thread Ian Griffiths
I can see how I can use this when there is just 1 row in the child table corresponding to a row in the parent table. But what if there are many? For example, support my parent table is Orders and my child table is Order Details - I don't see how I can use the expression language to do this. Or i

Re: [ADVANCED-DOTNET] Filtering DataSets

2002-06-20 Thread Beauchemin, Bob
If you actually have both DataTables in the DataSet already, you could add a relationship between the DataTables, and use the DataSet Expression language, using the Parent and/or Child referencing syntax. The Expression language is doc'd under the class library docs, under System.Data.DataColu

Re: [ADVANCED-DOTNET] Filtering DataSets

2002-06-20 Thread Alexander, William
You can create a relationship between DataTables in a DataSet which will allow you to do this. Here is the help file entry about this... In a DataSet that contains multiple DataTable objects, you can use DataRelation objects to relate one table to another, to navigate through the tables, and to