Combo Box Record Navigation

  • Thread starter Thread starter Jeff Brown
  • Start date Start date
J

Jeff Brown

I have my form loading correctly and when i use navigation buttons they work
correctly, but the nav buttons would be a pain when the number of records
increased.

What i am trying to do is code the combo box's SelectedIndexChanged event so
that when the index is changed the other records change? does this make
sense?
i have been doing single record navigation to the next record using code
below:

Me.BindingContext(DsTrailers1, "EquipTrailers").Position += 1

I need it to be something like :

me.bindingcontext(DsTrailers,"EquipTrailers").position = ???ROW THAT
MATCHES the COMBO BOX???
or
currentrow = ???ROW THAT MATCHES the COMBO BOX???

i was thinking about using the find method on a datarow but it doesn't
return an integer so i could use it for position.

Any Ideas?
 
Hi Jeff
From what I understand , you want to Change the Content in Other
Controls based on what you select in Combo Box . This should work without
doing anything . If Combo Box and Other COntrols are Bound to same Dataset
Instance (Same table also) and If you change Combo Box value other controls
Should reflect the Changed Row . Is Combo Box Bound to the Same Instance
and same Table ?

Thanks
Sunder
vb.net
 
Back
Top