Results 1 to 5 of 5

Thread: Combo display & value [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539

    Combo display & value [RESOLVED]

    Hi All

    Ive got a combo box which is being filled by a dataset i want to show the text value from one column but when a user makes their selection i want to pass over the datasets record Id rather than the text value (How is this done)

    Heres the vb code for filling the combo

    VB Code:
    1. Private Sub Designer_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
    2.         Dim objData As New NewForestMortgagesAPP.DesignerDI.GetDI
    3.         Me.cboLetter.DisplayMember = "LetterName"
    4.         Me.cboLetter.DataSource = objData.GetDataSet.Tables(0)
    5.     End Sub

    I just wana know the correct way of doing this ?

    Many Thanks
    Last edited by carlblanchard; Jan 29th, 2004 at 11:41 AM.
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

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