Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
XamDataGrid with Hierarchical data using MVVM



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