Let's say I have the following classes:
Is it possible to Databind the grid to the AdressBook and have the detail tables assigned automatically to properties like Friends, Family and Colleagues ? And then Adress to contact ?
Is it doable declaratively from the aspx file ?
Public
Class
AddressBook
Public
Property
OwnerName
As
String
Public
Property
Friends
As
IList(Of Contact)
Public
Property
Family
As
IList(Of Contact)
Public
Property
Colleagues
As
IList(Of Contact)
End
Class
Public
Class
Contact
Public
Property
Address
As
Address
Public
Property
Name
As
String
Public
Property
Phone
As
String
Public
Property
DateOfBirth
As
Date
Public
ReadOnly
Property
Age
As
Integer
Get
Return
Math.Floor((
Date
.Now - DateOfBirth).Days / 365)
End
Get
End
Property
End
Class
Public
Class
Address
Public
Property
StreetNumber
As
Integer
Public
Property
StreetName
As
String
Public
Property
ZipCode
As
String
End
Class
Is it possible to Databind the grid to the AdressBook and have the detail tables assigned automatically to properties like Friends, Family and Colleagues ? And then Adress to contact ?
Is it doable declaratively from the aspx file ?