GridView / Binding Sub Properties

Discussion in 'ASP .Net' started by =?Utf-8?B?RGVtZXRyaQ==?=, Jul 3, 2006.

  1. Lets say you have a business object called Person which derives it's data
    from the Person table therefore it has all sorts of properties such as
    FirstName, LastName, Age, etc.

    In addition you have an Address table that holds addresses and is related to
    the Person table as well as other tables. (same address may be related to
    other business objects such as BusinessContacts, etc.)

    The Person object also has a property called MailingAddress which is of type
    AddressInfo (contains the address information in the Address table).

    Now lets say I have a GridView control and I want a list of Person objects
    to be shown. I want a column for FirstName, LastName, Age, etc. That's easy.
    However, I also want a column called Street, City, State, and Zip but all
    those are properties of the AddressInfo object. How do I bind those
    "sub-properties" also?

    I seem to remember having read somewhere that this was a problem in ASPNet
    1.x but would be handled and solved in 2.0.

    --
    -Demetri
     
    =?Utf-8?B?RGVtZXRyaQ==?=, Jul 3, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. THY
    Replies:
    1
    Views:
    537
    Steve C. Orr, MCSD
    Aug 19, 2003
  2. Kathy Burke
    Replies:
    3
    Views:
    604
    Kathy Burke
    Nov 24, 2003
  3. =?Utf-8?B?aGlra2s=?=

    binding profile properties in Gridview ??

    =?Utf-8?B?aGlra2s=?=, Aug 8, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    898
    Brock Allen
    Aug 8, 2005
  4. Amit
    Replies:
    6
    Views:
    14,292
    Assimalyst
    Oct 24, 2006
  5. Victor Porton
    Replies:
    1
    Views:
    923
    Steven T. Hatton
    Aug 29, 2004
  6. Ben
    Replies:
    2
    Views:
    1,256
  7. Lawrence D'Oliveiro

    Death To Sub-Sub-Sub-Directories!

    Lawrence D'Oliveiro, May 5, 2011, in forum: Java
    Replies:
    92
    Views:
    3,109
    Lawrence D'Oliveiro
    May 20, 2011
  8. Craig Buchanan
    Replies:
    0
    Views:
    266
    Craig Buchanan
    Aug 22, 2007
Loading...