I have an object map similar to what's listed below. When I try to bind the properties of NestedClass in a GridView I get the error:
"A field or property with the name 'NestedClass.Name' was not found on the selected data source."
The GridView is bound to an ObjectDataSource and the ObjectDataSource is bound to a fully populated instance of BoundClass.
Is there any way around this?
Sample classes:
public class BoundClass
{
public string Name { get; set; }
public NestedClass NestedClass { get; set; }
}
public class NestedClass
{
public string Name { get; set; }
}