Results 1 to 4 of 4

Thread: I want to display two fields in a DropDownList

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    128

    I want to display two fields in a DropDownList

    I want to display two fields which are from a database in a DropDownList. How can I do that?

  2. #2
    Junior Member
    Join Date
    Apr 2002
    Location
    Egypt
    Posts
    31
    If you use DataReader You Can Fill like that:
    while Reader.Read
    Code:
    Combobox.Item.Add(Reader.GetValue(0) & " " & Reader.GetString(1))
    Next

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    128
    no, i am using this approch...

    Code:
    Comp.dapSSDHardwareList.Fill(dstSSDHardwareList)
    ddlHardwareID.DataBind()

  4. #4
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    With Kind Permissions from Edneeis;

    Edneeis has developed a control for this. See the attachment.

    For more infor refere to the post in page 3 with subject of 'display 2 fields in a combobox'
    Attached Files Attached Files

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