Solved

Move pointer in BindingNavigator with a combobox

Posted on 2010-09-03
1
849 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
1 Comment
 
LVL 18

Accepted Solution

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

948 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now