G
gilmae
Background:
I have three classes. The Person class, the Address class and the
People class. Person and Address classes are exactly what they sound
like. The People class is a class derived from CollectionBase and is a
collection of Person objects.
Finally, each Person object has an Address.
I want to bind an instance of People to a DataGrid, and amongst other
things, display the City property of the Address class for each
Person.
I have no trouble creating bound columns for the simple properties of
the Person class (Firstname, Surname, etc), but can't work out how to
bind a property of the Address class. For example
..MappingName = "Address.City"
does not work. Is there a way to do this?
david.
I have three classes. The Person class, the Address class and the
People class. Person and Address classes are exactly what they sound
like. The People class is a class derived from CollectionBase and is a
collection of Person objects.
Finally, each Person object has an Address.
I want to bind an instance of People to a DataGrid, and amongst other
things, display the City property of the Address class for each
Person.
I have no trouble creating bound columns for the simple properties of
the Person class (Firstname, Surname, etc), but can't work out how to
bind a property of the Address class. For example
..MappingName = "Address.City"
does not work. Is there a way to do this?
david.