Hi at all,
I've a GridView bound to my generics Collection Students (a name for example).
Student is a custom class and it has the "Parent" property which is my custom class ClassRoom.
I bind che students collection to a gridview and it works correctly if I display fields from students object.
But When I try to set in DataField property of the BoundColumn : Parent.ClassNumber asp.net cannot find the property. In debug mode I see that collection are correctly created and every student has a Parent property which is a ClassRoom object with its properties.
What have I forgot?
i don't want to replicate the classroom properties in the student object... is it possibile to mantain a hierarchical structure in binding right?
Do i miss some interface in my custom classes?
I'm using asp.net 2.0, c# and a Gridview with simply bound columns.
Thanks in advance for the help :)
Bob