Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Move pointer in BindingNavigator with a combobox

Posted on 2010-09-03
1
Medium Priority
?
880 Views
Last Modified: 2012-05-10
Hi Experts,

In my VB2008 I have a form that uses a BindingNavigator and a BindingSource (both on the form) to navigate through a database table (with client information). All buttons on the bindingnavigator work as expected. The fields of the database table are shown in text boxes.
Because there are about 500 rows in the table, I also added a combobox that shows a combination of the last and first names of the clients (= DisplayMember). The ValueMember of the combobox is set at the Primary Key Field of the table.

What I want is this:
- When I select another client name in the combobox, the pointer in the BindingNavigator should move to the corresponding row so that the text boxes are updated.
In my case the Primary Key Field is an integer field named Vrt_ID
When I select another name in my combobox, the valuemember of the combobox is updated to the Vrt_ID of the selected client.
Now I want the BindingNavigator to jump to the field with the same value for Vrt_ID.

How should I do this???
Thanks in advance.
0
Comment
Question by:NoraWil
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 18

Accepted Solution

by:
John (Yiannis) Toutountzoglou earned 2000 total points
ID: 33595978
use the this in combobox selected index change event
Me.Bindingsource.Position=Me.Combobox.SelectedIndex
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question