Hi,
I have a table ABC, which has foreign key constraint to 3 more tables. Now i want to bind the table ABC to a XamDataGrid. So that i can see the records of all the dependency tables.
I need to define the field layout for all these 3 tables along with the table ABC manually in the XAML.
can anyone suggest me, how to do this?
Regards,
Sagar
Hello Sagar,
Thank you for your post. I have been looking into it I created a sample project for you with the functionality you want. Basically the thing you should do when you want to define the FieldLayout when you have DataSet is to add Fields with names equals to the Relations Names in the parent FieldLayout. Please let me know if you need more clarifications on this matter.
Looking forward for your reply.
Hi Stefan,
Thanks for the reply. I have been working on the solution you have provided, It only works in your case.
When i am trying to bind my grid to a entity, it is not working. I have provided a sample project attached in this reply. It also contains the screenshots of when it is not working. Please let me know, where i am missing the dots.
Thanking you in advance.
Hello Venkata,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
You should add the foreign keys as Fields in the "ExpenseLedgerPlanSchedLow" FieldLayout (e.g. ExpenseLedgerItems, ExpenseLedgerPlan, etc.). Basically if you want to show a child layout the parent FieldLayout should have a Field with a name equals to the Navigation Property from the Model. Please let me know if you need more clarifications on this matter.