Results 1 to 7 of 7

Thread: combobox

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    London
    Posts
    678

    combobox

    hi,
    I would like to populate a comboBox with three text values and assign an ID to each one so that when one of them is selected, then an ID for that text value is used later on
    ie.
    combobox1.items.add("value1")
    combobox1.items.add("value2")
    combobox1.items.add("value3")

    tried
    accountTypeComboBox.Items.Add (new ListItem("Item 1", "0"))
    accountTypeComboBox.Items.Add (new ListItem("Item 2", "1"))

    but gives an error on ListItem

    Thanks
    Last edited by fmardani; Oct 10th, 2005 at 06:54 AM.

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