RaiseEvent BindingNavigator

K

Kyote

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.
 
K

Kyote

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top