WPF Toolkit DataGrid - Finding only visible/currently viewable rows

谁说我不能喝 提交于 2019-12-12 01:58:55

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/2969448/wpf-toolkit-datagrid-finding-only-visible-currently-viewable-rows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!