Hi,
I have an ObjectDataSource with Collection as follows:
public class Person
{
public string FirstName {get; set;}
public string LastName {get; set;}
public List<Email> emails {get; set;}
}
public class Email
{
public string Address {get; set;}
public string Category {get;set}
}
A method returns a List<Person> that is used as the datasource for the report
In the Report Explorer I see the fields FirstName, Lastname and Email
However Email only gives me Capacity and Count and not Address and Category. It seems that the Data Explorer cannot drill down to the Nested list of Emails and its properties.
Is there a way to set it up so that the Email fileds are exposed Data Explorer? This way I was hoping to avoid using subreports which will get a object datasource of "PersonEmails" from a method and use this in the details.
Thanks,
Peter
I have an ObjectDataSource with Collection as follows:
public class Person
{
public string FirstName {get; set;}
public string LastName {get; set;}
public List<Email> emails {get; set;}
}
public class Email
{
public string Address {get; set;}
public string Category {get;set}
}
A method returns a List<Person> that is used as the datasource for the report
In the Report Explorer I see the fields FirstName, Lastname and Email
However Email only gives me Capacity and Count and not Address and Category. It seems that the Data Explorer cannot drill down to the Nested list of Emails and its properties.
Is there a way to set it up so that the Email fileds are exposed Data Explorer? This way I was hoping to avoid using subreports which will get a object datasource of "PersonEmails" from a method and use this in the details.
Thanks,
Peter