bdi Nobody
Joined: 21 Oct 2004 Posts: 1646 Location: Chicago
|
Posted: Sun May 25, 2008 9:34 am Post subject: FormView |
|
|
I am trying to bind an ObjectDataSource to a FormView. The Object would be a person and has some properties like FirstName and LastName that work fine. The person object also has an Address property though which is a different class with address line 1, line 2, city, etc in it. Can I use the FormView to bind to those as well?
The best option I have come up with is to create a property in the person class for each of the fields I want to bind to in the Address class. I also thought of using inheritance and having a base object, but there are several objects needed, not just address.
Is there a better way? |
|