SelectedItem after DataBinding--get DataRow?

Discussion in 'ASP .Net' started by Matt C., Jun 23, 2006.

  1. Matt C.

    Matt C. Guest

    If I databind a DataTable to a dropdown list in Winforms, the SelectedItem
    is actually the entire DataRow from the datatable. If I want to access
    columns that were not part of the display, I can do that.

    It doesn't look like I can do that in ASP.NET. After databinding, the
    SelectedItem appears to be the display string only.

    Is this impression correct? Is there any way to get back the rest of the
    datarow via the databound control?

    (Obviously I can stick the whole DataTable in ViewState or something like
    that, that's not what I'm asking.)

    Matt
     
    Matt C., Jun 23, 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. huobazi
    Replies:
    0
    Views:
    586
    huobazi
    Jul 1, 2003
  2. Justin Bartels
    Replies:
    2
    Views:
    993
    Jacob Yang [MSFT]
    Oct 21, 2003
  3. Bennett Haselton
    Replies:
    0
    Views:
    686
    Bennett Haselton
    Nov 11, 2004
  4. jobs
    Replies:
    0
    Views:
    1,631
  5. JB
    Replies:
    1
    Views:
    1,210
    bruce barker
    Mar 8, 2009
Loading...

Share This Page