如何获取 PagedCollectionView 内组内的项目?
我有一个 PagedCollectionView,但它的 Groups 属性不会公开有关每个组的任何信息,例如 PagedCollectionView 中的哪些项目在该组内,这是我需要知道的信息..
我想做像这样的东西:
(System.Windows.Data.CollectionViewGroupInternal)pcv.Groups[0].Items;
似乎这是在内部类中保存的,并且无法从客户端代码中获取。还有其他方法可以获取这些信息吗?
I have a PagedCollectionView, but the Groups property on it doesn't expose any information about each group, such as which of the items in the PagedCollectionView are within that group, which is information I need to know..
I'd like to do something like this:
(System.Windows.Data.CollectionViewGroupInternal)pcv.Groups[0].Items;
It seems that this is held within an internal class, and is not obtainable from client code. Is there another way to get this information?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,使用 DataGrid 的公共接口完全不可能实现这个简单的功能。令人惊讶的是,这个基本功能在这个网格中已经缺失多年了。
It turns out that this simple feature is completely impossible using the public interfaces of the DataGrid. Simply amazing that this basic feature has been missing for years in this grid.