C# / .NET:移至 BindingNavigator 中所需的项目
我正在使用 这样的 BindingNavigator 让用户在 BindingSource 的数据记录中移动。 如何通过程序将显示的页面更改为所需的页码?
我已经将PositionItem设置为所需的页码,但这只是更改了显示的页码,并没有移动到该页面。
我确信这并不困难,但我现在正在寻找解决方案一个小时。所以我现在问你们...
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...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在代码中,您不使用 BindingNavigator 进行导航。
使用 BindingSource 的 Find、MoveXxx 和 Position 成员。
In code, you do not navigate using the BindingNavigator.
Use the Find, MoveXxx and Position members of the BindingSource.