Hello,
I have created a view with a parent child relationship where each [member] has a number of [files].
I am using a XamDataGrid to display the collection of members and another grid to display the files of the selected member.
I am using the AllowAddNew feature of the XamDataGrid and the MVVM approch to accomplish the task.
I created a FileViewModel class with a parameterless constructor to enable the AllowAddNew but i can't wire up the new added file to the parent member.
public class FileViewModel : ViewModelBase
{
File file;
public FileViewModel() {
file = new File();
// file.MemberId = "?";
....
Is there some solution?
Thanks in advance,
Fadi Raheel
HI Fadi,
I am attaching a sample application for your review.
Sincerely, Matt Developer Support Engineer
Thanks Matt for your solution.
Can we bind the XamDataGrid.SelectedItemChanged to a command in the ViewModel? I am trying the get my ViewModel independent on the View UI elements.
Thanks,
I am attaching a new sample that uses commanding tied to the SelectedChange event.
Sincerely,
MattDeveloper Support Engineer
HI,
I am just following up on this forum thread.
Please let me know if you need further assistance.
Matt Developer Support Engineer