Results 1 to 2 of 2

Thread: [RESOLVED] A dropdown list question

Threaded View

  1. #1

    Thread Starter
    Frenzied Member FishGuy's Avatar
    Join Date
    Mar 2005
    Location
    Bradford UK
    Posts
    1,708

    Resolved [RESOLVED] A dropdown list question

    Hi,
    I have this drop down list which is populated with the proc below. Can anyone tell me how to keep the fields shown as the key fields but for added detail in the drop down I want it to show two more fields from the data source?
    VB Code:
    1. Private Sub bindDropCarriages()
    2.         Me.DropCarriageNo.Items.Clear()
    3.         'Get Available Carriages
    4.  
    5.         Me.DropCarriageNo.DataSource = Main.objCarriageBuildSheet.vwCarriages
    6.         Main.objCarriageBuildSheet.vwCarriages.RowFilter = "Despatched = False"
    7.         Me.DropCarriageNo.DataTextField = "Lift Serial Number"
    8.         Me.DropCarriageNo.DataValueField = "Lift Serial Number"
    9.         Me.DropCarriageNo.DataBind()
    10.  
    11.     End Sub
    Or to simplify the question can I have more than one column in the dropdown?
    Last edited by FishGuy; Jan 11th, 2006 at 06:06 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