views:

416

answers:

0

Is there any way to bind below object to the DetailsView with a repeater control as one of the items in item template: Name, address and age binds, but I can't get others to bind.

I am able to set the source of repeater control to the Array (DataSource = '<%# DataBinder.Eval(Container.DataItem, "FriendArray")%>') in the markup. The data bind event on repeater does fire but the DataItem is still "Me" object and not the Array of Friends. I suspect i don't need to do foreach as repeater should be able to go through the array and bind all items.

public class Me  
{  
    public string Name;  
    public string Address;  
    public int age;  
    public School schoolAt;  
    public Friend[] FriendArray;  
}