Results 1 to 2 of 2

Thread: [RESOLVED] [2008] Add look up to Binding Navigator

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2006
    Posts
    977

    Resolved [RESOLVED] [2008] Add look up to Binding Navigator

    Hi

    I have a form that contains a Binding Navigator which is bound to Table "Customers" Database "Northwind".I have added to the Binding Navigator a ToolStripComboBox1 containing all the "CompanyName" of this Table.When the user selects an item from this ToolStripComboBox1,I get its corresponding CustomerID.What should I do then to display the record of the selected Customer?(I have a set of textboxes bound to each field of the table "Customers")
    CustomersBindingSource.Position = ??

    thanks

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2008] Add look up to Binding Navigator

    vb.net Code:
    1. myBindingSource.Position = myBindingSource.Find("CustomerID = " & customerID)
    where customerID is the value you got from the combo box and myBindingSource is the BindingSource associated with your BindingNavigator.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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