Add relationship using multiple keys
Thanks for using syncfusion products.
Generally, the parent-child relation can be associated by using a primary key (only one Unique column). It seems your requirement is to have two common keys which is not possible as per the current architecture of GridGroupingControl but you can try out with the followings and choose your needed requirement.
|
Using ForeignKey relation |
You can use foreign key relations to add your needed keys.
A sample for foreign key demo is located in our dashboard, Location : C:\Users\.... \AppData\Local\Syncfusion\EssentialStudio\\”InstalledVersion”\Windows\Grid.Grouping.Windows\Samples\Relation And Hierarchy\Foreign-Key Reference Demo | |
|
Using Primary key with grouping |
Along with primary key (“Employee_ID”) setting, you can group the another column (“Year”) to show the records in the separated view.
You can make use of the below dashboard sample with the below code snippet (Grouping) Location : C:\Users\....\AppData\Local\Syncfusion\EssentialStudio\”InstalledVersion”\Windows\Grid.Grouping.Windows\Samples\Relation And Hierarchy\Related Master Details Demo //Adding column to the Group. |
If the above ways doesn’t meet the exact requirement, please provide a sample image of your requirement. That would be helpful to serve you better.
Thanks,
Mahendran.A
Thanks for your update.
Please let us know if you need further assistance.
Regards,
Mahendran.A
- 3 Replies
- 2 Participants
-
RA Rasika
- Aug 11, 2015 07:22 AM UTC
- Aug 14, 2015 08:47 AM UTC