Binding custom objects to dropdown

Discussion in 'ASP .Net' started by 3P, Feb 21, 2010.

  1. 3P

    3P Guest

    Hi.

    What's the best way to bind collection of custom objects to dropdown. The
    problem I have is that entity is identified by two columns in database (to
    properties in object) and I would like SelectedValue return both. Was
    thinking about adding another property joining two other only for dropdown
    (dont' like it) or maybe creating anonymous object with that property only
    for binding.

    How do You do it?
    3P, Feb 21, 2010
    #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?RGVtZXRyaQ==?=

    Binding child objects of a custom collection

    =?Utf-8?B?RGVtZXRyaQ==?=, Aug 31, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    585
    =?Utf-8?B?RGVtZXRyaQ==?=
    Sep 1, 2005
  2. =?Utf-8?B?SmF5YnVmZmV0?=
    Replies:
    9
    Views:
    840
    Phillip Williams
    Feb 21, 2006
  3. Rachel Koktava

    Binding custom objects to datagrid WITHOUT using Collectionbase

    Rachel Koktava, Sep 1, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    2
    Views:
    199
    Rachel Koktava
    Sep 15, 2003
  4. JcFx
    Replies:
    0
    Views:
    269
  5. Holysmoke

    Binding ArrayList of Custom objects to DropDownList

    Holysmoke, Nov 9, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    201
    Ryan Cromwell
    Nov 9, 2004
Loading...

Share This Page