Hey Sandeep,
Thanks for your suggetion. I have tried and it is working fine in a sample application but we are implementing the same concept in MVVM using prism we are unable to bind the data that is what I am trying for.
you can find my sample code below,
.cs
Locations = new List { new MyLocation { Location = "London", NAMEID = 1 }, new MyLocation { Location = "Amsterdam", NAMEID = 2 } };
Persons = new List<Person> { new Person { NAME = "Jack", NAMEID = 1 }, new Person { NAME = "Jill", NAMEID = 2 } };
DataContext = this;