Results 1 to 2 of 2

Thread: listbox to listbox data binding

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2007
    Posts
    2

    listbox to listbox data binding

    ok i have an application that is connected to an access database. It has two list boxes. i have got the first listbox to access the database and retrive movie titles with the following code:

    VB Code:
    1. Private Sub MovieApp_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load          
    2. newMA = New MovieApp          
    3. DsTitles.Clear() 'remove anything already in the dataset                         TitleAdapt.Fill(DsTitles) 'refill it          
    4. IsInitialising = False      
    5.  
    6. End Sub

    i now wish to for the user to be able to select a movie title from this list box and for the actors involved in the film to be displayed in a second list box. i created a new adapter and dataset to search for the actors in the selected film but i dont know where to go from here. ive messed around with the displaymember and value member and tried various code in else statement in the selected value changed but to no avail:


    VB Code:
    1. Private Sub lstFilmTitle_SelectedValueChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles lstFilmTitle.SelectedValueChanged
    2.         If IsInitialising = True Then
    3.             Exit Sub
    4.         Else
    5.  
    6.            
    7.         End If
    8.     End Sub

    any help would be appreciated, please treat me as a noob when it comes to handing databases and data binding as its all new to me.

  2. #2

    Thread Starter
    New Member
    Join Date
    Jan 2007
    Posts
    2

    Re: listbox to listbox data binding

    bump

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