如何向 WpfToolkit 数据网格添加筛选器和分页

发布于 2024-09-04 19:15:19 字数 227 浏览 4 评论 0原文

我想向 WPFToolkit 数据网格中的列添加过滤器。是否有可能使其像商业网格中的网格一样工作(例如 DevExpress 或 Telerik 中的......)?还有一个关于数据网格中分页的第二个小问题。我是否需要网格中的一个(我只是想要快速网格,所以我考虑了分页。或者也许数据虚拟化在那里工作得很好?)?

I want to add filter to columns in WPFToolkit datagrid. Is it possible to make it work like the ones in commercial grids (like in DevExpress's or Telerik's..)? Also a small second question about paging in datagrid..Do i need the one in the grid (i just want fast grid, so i thought about paging. Or maybe data virtualization there works just fine?)?

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

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

发布评论

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

评论(1

Hello爱情风 2024-09-11 19:15:19

查看 ICollectionView.Filter财产。

本文演示了其用法。

编辑:我使用了带有大约 100k 条目的列表视图的虚拟化,没有任何性能问题。我还没有在数据网格中使用它。我想这实际上取决于您计划显示的行数以及您计划如何允许或强制用户缩小标准。不过,这些是您(或您的老板)的业务决策。

Have a look at the ICollectionView.Filter property.

This article demonstrates its use.

EDIT: I've used Virtualization with a list view with some 100k entries without any performance issues. I haven't used it in a data grid. I guess it really depends on how many rows you are planning on displaying and how you plan to allow or force the user to narrow the criteria. Those are business decisions on your (or your Boss') part though.

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