I am using MVVM in my app.
There are two XamDataGrids in the window, in a Master(Customer) and Detail(Order) relationship.
I set "AllowAddNew" to true in the Master.
I am trying to link the Master and Detail together when adding a new Customer into Master.
The ActiveDataItem in the Master is bidden to the "SelectedCustomer" property in the view model, the datasource of the Detail is bidden to SelectedCustomer.Orders.
When adding a new Customer in the Master, the RecordAdded event fires, I check the SelectedCustomer property when RecordAdded fired, the property is null, hence, I am not able to set the datasource of the Detail.
How can I set the datasource of the Detail to the newly added Customer's Order list?
Thanks.
Thank you, it works :-)
Hello,
Did the sample help you resolve your issue?
Sincerely,
Valerie
Developer Support Supervisor - XAML
Infragistics
www.infragistics.com/support
HI,
I am attaching a sample that may help you resolve your issue.