How do I add relationships between classes programatically. Let me explain: I have custom datasources (they also implement ITypedList), these sources are related-so I would wan''t a parent source and display its related child sources. I am trying to set these relations up but nothing is working. There are no relations in the TableDescriptor.Relations property is empty.
The parent table displays perfectly - with custom controls etc... I just can''t add the relations...
ADAdministrator Syncfusion Team February 1, 2005 04:12 AM
Take a look at the Syncfusion\Essential Suite\126.96.36.199\Windows\Grid.Windows\Samples\Grouping\StrongTypedCollection sample. I think you will need to create a GridRelationDescriptorCollection, and add your relations to it, and then set this collection as the TableDescriptor.Relations value.
THTheoCFebruary 1, 2005 04:25 AM
THTheoCFebruary 1, 2005 04:28 AM
How do I go about setting up a RelationDescriptor. There are a lot of settings and I can''t find the right ones to get it to work. How do I get the related Custom DataSource into the ggc and then set the relation up between this child source and the parent source?
Thanks for the help,
ADAdministrator Syncfusion Team February 1, 2005 04:56 AM
It sounds like you need to set the RelationKind to RelatedMasterDetails.
Take a look at the Syncfusion\Essential Suite\188.8.131.52\Windows\Grid.Windows\Samples\Grouping\ManualRelations sample. Its sets up RelationKind.RelatedMasterDetails relations.