Results 1 to 6 of 6

Thread: dropdownlist selected item

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2003
    Posts
    38

    Unhappy dropdownlist selected item

    i want to retrieve the information from the database and make it the selected item in the dropdown list...
    For eg:
    how much do u earn per month?
    den the user select 1000-2000 per month in a dropdown list

    den after tat i wan the 1000-2000 to be selected item when they edit it..

    thanks..

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Is this what you're looking for ?
    Attached Files Attached Files

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2003
    Posts
    38
    not really.... what i wan is like user registeration.. den when they click update profile all will be shown as wat they keyed in in the first place...

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I don't get it !

  5. #5

    Thread Starter
    Member
    Join Date
    Mar 2003
    Posts
    38
    for eg.. the user register with us... saying that he earn 1k per month... then later when he wan to update his profile, i can't expect him to choose the option in the dropdownlist ...
    so i wan the dropdown list to show the item 1k as default...

  6. #6
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    This will set the selectedindex property to first item . Put it in load_form event of the form :
    VB Code:
    1. ComboBox1.SelectedIndex = 0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width