Results 1 to 2 of 2

Thread: Combo Box

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    Cincinnati, OH
    Posts
    44

    Combo Box

    I am hoping someone can help me. I have a combo box and am filling the combo box via a databinding. It seems as if that by default the combo box shows the first record in the combo box. I however want the displayed text to be empty and when the user clicks on the combo box they will then see the items in the combo box. Can anyone help? I am puzzled. In .net 2002 I could say combobox.selectedindex = -1 In 2003 this does not work, it still shows the first record in the databinding.
    Jim Webster

  2. #2
    Lively Member
    Join Date
    Sep 2002
    Location
    Belgium
    Posts
    99
    Yes you can


    With insert, you can insert a row and specify the index... so you can insert an empty record on index 0.

    cboCourier.Items.Insert(0, "")

    HTH

    Bjorn

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