I have two List : 1) ListPolicies, (Outer list, parent list)
2) ListBrokers (inner list, child list)
Class DataBind
{
public list <Policy> PolicyList {get;set;}
}
class Policy
{
public PolicyNumber {get;set;}
public PolicyName {get;set;}
public List<Broker> {get;set;}
}
class Broker
{
public Name {get;set;}
public Address {get;set;}
}
bind data to parent list
ListPolicies.DataSource = defaultReportViewModel.PlanProvider.PolicyList;
Now i want to bind data childlist, how to achieve this thing???