Populating dropdown lists in Gridview from Database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kalkin
    New Member
    • Nov 2009
    • 6

    #1

    Populating dropdown lists in Gridview from Database

    Hi i am having trouble with the following problem any help would be appreciated::

    The gridview starts off with empty text boxes for input along with already populated dropdowns to choose from for input. This is all fine, but when it has saved and needs to be called back to the same gridview how do i get it to choose from the dropdown list the choice that was in the database.

    For example:

    if the list contains these 3 items
    • Happy
    • Sad
    • Neutral


    if i choose neutral and save to the database then when i load the page again when it calls from the databse it must have the same list, but Neutral must shown

    I am not sure how else to explain it. I am attaching a screen for you to see.
    Attached Files
Working...