C# / .NET:移至 BindingNavigator 中所需的项目

发布于 2024-09-16 22:41:15 字数 306 浏览 10 评论 0原文

我正在使用 这样的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

素衣风尘叹 2024-09-23 22:41:15

在代码中,您使用 BindingNavigator 进行导航。

使用 BindingSource 的 Find、MoveXxx 和 Position 成员。

In code, you do not navigate using the BindingNavigator.

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文