BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Query |
Response |
Did you forget to call Engine.SourceListSet.Add(new SourceListSetEntry(Causes, list)
or did you specify a wrong ChildTableName? |
We have created a simple sample as per your requirement. The relational child table can be added to a parent table in GridGroupingControl by adding the childTable to Engine.SourceListSet. The childTable name should be registered with Engine.SourceListSet, so that the RelationDescriptor can get the child table name. Please make use of below code and samples,
//Assigning Data source to Grid
gridGroupingControl1.DataSource = parentTable;
//Registering the child table with SourceListSet
gridGroupingControl1.Engine.SourceListSet.Add("ChildTable",childTable);
//Adding Foreignkey reference to grid
GridRelationDescriptor relation = new GridRelationDescriptor();
relation.RelationKind = RelationKind.RelatedMasterDetails;
relation.ChildTableName = "ChildTable";
relation.RelationKeys.Add("CategoryID", "CategoryID");
relation.ChildTableDescriptor.AllowEdit = true;
gridGroupingControl1.TableDescriptor.Relations.Add(relation);
Already we have provided the information in our user guide document. Please refer to the below link,
UG link: https://help.syncfusion.com/windowsforms/gridgrouping/relations-and-hierarchy#adding-relations
|
Any advice or a simple demo of Parent/Children/Grandchildren using simple .NET bare bones classes with properties of List<T> for the children? |
We have provided the dash board samples with parent/child/grandchild table relations. Please refer the below samples,
Dash Board sample link:
<InstallLocation> \Syncfusion\EssentialStudio\<Product Version>\Windows\Grid.Grouping.Windows\Samples\Data Sources\Nested Child-Collection Demo\
<InstallLocation>\Syncfusion\EssentialStudio\<Product version>\Windows\Grid.Grouping.Windows\Samples\Relation And Hierarchy\Related Master Details Demo |