C# / .NET: Move to desired Item in BindingNavigator
Asked Answered
T

1

5

I'm using such a BindingNavigator to let the User move through Data Records of a BindingSource. How can I change the displayed page to a desired page number through the program?

I already set the PositionItem to the desired page number, but that just changes the displayed page number and doesnt move to this page.

I'm sure it's not difficult, but I'm searching the solution for quite a hour now. So I'm asking u guys now...

Thunderpeal answered 29/8, 2010 at 14:46 Comment(2)
What is a 'page' here? A record?Ethology
A record in the BindingNavigatorThunderpeal
E
8

In code, you do not navigate using the BindingNavigator.

Use the Find, MoveXxx and Position members of the BindingSource.

Ethology answered 29/8, 2010 at 15:38 Comment(1)
Thank you. Thats the solution: bindingNavigator.BindingSource.Position = desiredPositionAsInt;Thunderpeal

© 2022 - 2024 — McMap. All rights reserved.