Dropdown List in a DataGrid

Discussion in 'ASP .Net' started by Philip Townsend, Apr 5, 2004.

  1. I have a datagrid control in an .aspx page which gets its values from a
    Sql Server table. I need to add a dropdown list control to the edit
    column. The dropdown list needs to contain a list of available choices
    from another table, but the selected choice needs to be whatever is the
    current referenced value the original table. Can anybody point me in the
    right direction for this? Thanks...



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    Philip Townsend, Apr 5, 2004
    #1
    1. Advertisements

  2. Philip Townsend

    Rajiv R Guest

    Philip,

    this must help: http://www.4guysfromrolla.com/webtech/050801-1.shtml
    http://xmlfox.com/CSsamples.htm


    --
    Cheers!
    Rajiv. R
    Rajspace.Org

    "Philip Townsend" <> wrote in message
    news:#...
    > I have a datagrid control in an .aspx page which gets its values from a
    > Sql Server table. I need to add a dropdown list control to the edit
    > column. The dropdown list needs to contain a list of available choices
    > from another table, but the selected choice needs to be whatever is the
    > current referenced value the original table. Can anybody point me in the
    > right direction for this? Thanks...
    >
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it!
     
    Rajiv R, Apr 5, 2004
    #2
    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. Michelle

    bounding for dropdown list in datagrid

    Michelle, Jul 7, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    523
    [ MVP ] Sukesh Ashok Kumar
    Jul 12, 2003
  2. vishnu
    Replies:
    1
    Views:
    1,449
    Patrick.O.Ige
    Mar 25, 2006
  3. =?Utf-8?B?QnJlbmRlbiBCaXhsZXI=?=

    Dropdown List - Check if value exists in list prior to selection

    =?Utf-8?B?QnJlbmRlbiBCaXhsZXI=?=, Mar 10, 2007, in forum: ASP .Net
    Replies:
    5
    Views:
    2,223
    =?Utf-8?B?QnJlbmRlbg==?=
    Mar 20, 2007
  4. =?Utf-8?B?RGF2ZSBU?=

    Columns in Dropdown list and list box

    =?Utf-8?B?RGF2ZSBU?=, Jun 25, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    612
    jufemaiz: jc
    Jun 27, 2007
  5. mldardy
    Replies:
    1
    Views:
    907
    mldardy
    Dec 10, 2008
  6. M. Craig

    How to set background color of List item in dropdown list

    M. Craig, Nov 12, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    457
    M. Craig
    Nov 12, 2003
  7. M. Craig
    Replies:
    1
    Views:
    949
    Victor Garcia Aprea [MVP]
    Jan 9, 2004
  8. Bryan Stauffer

    Dropdown List doesn't know what's in it's list

    Bryan Stauffer, Jul 6, 2006, in forum: ASP .Net Web Controls
    Replies:
    6
    Views:
    255
Loading...