473,385 Members | 1,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

RaiseEvent BindingNavigator

On my form I have a tabcontrol with a few pages on it. One page is
called Members and one is called Browse. On the browse page is a
datagrid. On the Members page is a BindingNavigator strip.

The DB has too many columns to be easily viewed without scrolling so
I'm trying to make it so when a row in the Browse tab is double
clicked it will bring the Members page into focus, which I have. But I
also want to have the BindingNavigator change it's current record to
the one double clicked.

Here's what I'm trying

Private Sub DataGridView1_DoubleClick(ByVal sender As Object,
ByVal e As System.EventArgs) Handles DataGridView1.DoubleClick
BindingNavigatorPositionItem.Text = 5
TabControl1.SelectTab(2)
RaiseEvent BindingNavigatorPositionItem_LostFocus()
End Sub

After googling, and searching help, it seems to say you cannot call
native handlers. Only an explicitly declared one.

My question's are:
How can I do what I'm trying to do?
Is it possible to raise a native event, and if so how?

Please don't get too technical on the explanation, at least where data
binding is concerned.

---
Kyote
May 7 '07 #1
2 1685
Does no one have an answer for this question? It still has me stumped.
---
Kyote
May 10 '07 #2
On Thu, 10 May 2007 10:08:09 -0500, Kyote
<ky********@nospamhotmail.comwrote:
>Does no one have an answer for this question? It still has me stumped.
WOOT! Nevermind. I just figured out a solution that works so I don't
really need this answered. All I needed to do was this:

MembershipBindingSource.Position = DataGridView1.CurrentRow.Index

And it updates to the row double clicked on.
>---
Kyote
---
Kyote
May 10 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: WeBe | last post by:
Hi! How do you trap the navigation events (MoveNext, MoveFirst, etc.) in a BindingNavigator before the navigation has been done? There must be a way to check the state of the current item and...
5
by: John | last post by:
Hi When I press the delete button on the BindingNavigator it deletes the record without any warning. How can I add a warning dialog when the delete button on the BindingNavigator is pressed and...
2
by: Dave | last post by:
I have a c# program that uses the bindingnavigator control. It works fine, but I want to add the ability for a user to change his mind after clicking 'delete' to delete a record. So if the user...
3
by: michael sorens | last post by:
I have generated an XmlDocument, then bound it to a DataGridView (thanks to a pointer from PeterBromberg in a separate, recent posting). Now I want to connect a BindingNavigator, but my rudimentary...
7
by: Dale Sampson | last post by:
As you can tell, I am new to VS.net. I have a VB project with a defined data source pointing to a table in a ..mdb file.-- The associated fields are displayed in textboxes using the...
2
by: csharpa | last post by:
Hi, I’m using VS2005 and the bindingnavigator control. Right now I’m using 2 bindingnavigator control (each for one table) in order to generate the new ID when I clicked the ‘add new” button. But...
0
by: Rick | last post by:
VS 2005 I have some custom business objects (BindingList(of T)) connected through BindingSources to a BindingNavigator. When the user moves focus the BindingSource of the navigator can be...
0
by: kareem100 | last post by:
Hi, I have just started learning visual basic ( using visual basic express) and i have run into a problem that I can't resolve. I am using a bindingnavigator on a form. The thing is that when...
0
by: sincos | last post by:
Hello, First, sorry for my English, I hope you will understand me:) I'm new in using C Sharp and more with the bindingNavigator. What I would do is to simulate the button "add"...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.