Infragistics UltraListView 自动滚动

发布于 2024-08-03 06:24:57 字数 58 浏览 7 评论 0原文

有谁知道如何使 Infragistics UltraListView 控件在添加新项目时自动向下滚动?

Does anyone knows how to make the Infragistics UltraListView control scrolls down automatically whenever a new item is added?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

若水般的淡然安静女子 2024-08-10 06:24:57

试试这个:

UltraListViewItem i = listView.Items[listView.Items.Count - 1];    
ISelectionManager selectionManager = listView as Infragistics.Win.ISelectionManager;    
selectionManager.SelectItem(i, true);    
i.Activate();

try this:

UltraListViewItem i = listView.Items[listView.Items.Count - 1];    
ISelectionManager selectionManager = listView as Infragistics.Win.ISelectionManager;    
selectionManager.SelectItem(i, true);    
i.Activate();
隔纱相望 2024-08-10 06:24:57

UltraListViewItem 有 BringIntoView() 方法,这可以解决问题。

UltraListViewItem has BringIntoView() method, which would do the trick.

反目相谮 2024-08-10 06:24:57

对于简单的向下滚动,请使用 PerformAction 方法。有多种 Infragistics 常量可以用作参数... intellisense 提供了关于此的良好信息:

(VB)

    UltraListView1.PerformAction(UltraWinListView.UltraListViewAction.ScrollVerticalBySmallIncrement)

是的,这是一个编程问题。 ;)

For a simple scroll down, use the PerformAction method. There are a variety of Infragistics constants that can be used as the argument... intellisense gives good info on this:

(VB)

    UltraListView1.PerformAction(UltraWinListView.UltraListViewAction.ScrollVerticalBySmallIncrement)

And yes, it's a programming question. ;)

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