BindingManagerBase object

  • Thread starter Thread starter Jesse Villani
  • Start date Start date
J

Jesse Villani

I will get this eventually,

I have a combobox on a form which is bound to a dataset and displays correct
values in the list. When i select a value from the list, i check to see
what is the current row in a bindingManagerBase object is in the
selectedValue event handler code. I print out, on labels the following
values:

bmb.Count and bmb.Position where bmb is the bindingManagerBase object.

The count is correct, there are 71 items in the list.
The position however, does not change, even though i select different items
in the comboBox.

What am i missing?

Thanks guys and girrls,
Jesse
 
Hi Jesse,

I am curious, why do you not use the selectedindex from the combobox?

Cor
 
I've tried selectedIndex and selectedValue. It appears that these fire
before the bindingManagerBase gets updated (eg. the cursor moves). So now i
have used the
Private Sub bmb_CurrentChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles bmb.CurrentChanged

event. It occurs after the change has occurred. Now i have a problem where
some of the items, when i select them in the comboBox update other fields,
but some don't. I can't figure out why.

Jesse
 
Hi Jesse,

Did you use this already before the place you need it?
\\\
DirectCast(BindingContext(ds.Tables(0)), CurrencyManager).EndCurrentEdit()
///
I hope this helps?

Cor
 
Hi Jesse

Are you using 1.1 or 1.0? I have had a similar problem -
currentchanged works well with 1.0 but not with 1.1.

Stephen
 

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

Back
Top