WPF工具包DataGrid - 仅查找可见/当前可查看的行 [英] WPF Toolkit DataGrid - Finding only visible/currently viewable rows

查看:221
本文介绍了WPF工具包DataGrid - 仅查找可见/当前可查看的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用WPF Toolkit的DataGrid来显示一组搜索结果。根据其他问题的情况,我希望能够预取数据网格中每个可见(即可见的滚动区域)行的次要结果。



我想要能够: p>


  • 查询可查看行

  • 当行变为可见时(通过垂直滚动) li>


注意:可能的重复? [但没有验证的答案/结果] - 任何人都有任何链接/代码示例来实现这一点?

解决方案

以前并没有找到一个解决方案。



你正在谈论数据虚拟化,而我没有找到一种方法来与wpf datagrid一起使用,它可以很容易地与xceed Grid Pro版本(内置), here 是您可以构建的另一种解决方案使用他们的实现,你可以建立一个模型,知道哪些行被加载/请求,并从那里工作。


I'm using the WPF Toolkit's DataGrid to display a set of search results. As per then scenario in my other question I want to be able to pre-fetch secondary results for each of my viewable (that is, within the visible scroll area) rows in the datagrid.

I want to be able to:

  • Query "viewable" rows
  • Raise an event when rows become visible (via vertical scrolling)

NOTE: Possible duplicate? [But without validated answer/outcome] - Anyone have any links/code samples to achieve this?

解决方案

I have looked at this previously and have not found a solution.

You are talking about data virtualization, while i havent found a way to do it with the wpf datagrid it is readily available with the xceed grid pro version(built in), here is another solution that you could build on, using their implementation you could build a model that knows which rows have been loaded/requested and work from there.

这篇关于WPF工具包DataGrid - 仅查找可见/当前可查看的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆