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. Advertising

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. =?Utf-8?B?aGlra2s=?=

    binding profile properties in Gridview ??

    =?Utf-8?B?aGlra2s=?=, Aug 8, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    789
    Brock Allen
    Aug 8, 2005
  2. Amit
    Replies:
    6
    Views:
    13,782
    Assimalyst
    Oct 24, 2006
  3. Victor Porton
    Replies:
    1
    Views:
    695
    Steven T. Hatton
    Aug 29, 2004
  4. Ben
    Replies:
    2
    Views:
    875
  5. Lawrence D'Oliveiro

    Death To Sub-Sub-Sub-Directories!

    Lawrence D'Oliveiro, May 5, 2011, in forum: Java
    Replies:
    92
    Views:
    2,012
    Lawrence D'Oliveiro
    May 20, 2011
Loading...

Share This Page