Typed Lists, Infragistics and Master Detail views

Posts   
 
    
AlanD
User
Posts: 26
Joined: 19-Sep-2006
# Posted on: 19-Sep-2006 12:54:50   

Hi all, I have two typed lists that I'm trying to display in a Master Detail fashion in an Infragistics UltraGrid (although I think Infragistics is probably irrelevant). I can't figure out how to relate the two Typed lists. They have a corresponding PK-FK pair, but (e.g.) the DataSet property is null (and can't be set) so I think they are based on freestanding tables.

I'm using SelfServicing, two class scenario.

I have seen the IRelationPredicateBucket mentioned on the forums but I don't really understand it and my typed lists don't have a GetFieldsInfo() method so that seems like a loser confused

Any ideas on this?

Thanks,

Alan

Rogelio
User
Posts: 221
Joined: 29-Mar-2005
# Posted on: 19-Sep-2006 13:06:02   

Hi,

I think you can add both typedlist to a dataset and add a datarelation (between the two typedlist using the field that related both) to the dataset.

AlanD
User
Posts: 26
Joined: 19-Sep-2006
# Posted on: 19-Sep-2006 13:52:34   

OK, how do you add a typedlist to a dataset? Alan

Jessynoo avatar
Jessynoo
Support Team
Posts: 296
Joined: 19-Aug-2004
# Posted on: 19-Sep-2006 15:19:24   

Hi,

a typedlist is a datatable (by inheritence) so add as you would add a datatable:

youDataSet.Tables.Add(yourTypedList)

Cheers

AlanD
User
Posts: 26
Joined: 19-Sep-2006
# Posted on: 19-Sep-2006 15:46:00   

Oh yes, inheritance, I forgot that. I was trying to find an underlying .DataTable property. Thanks Alan