Silverlight和的ICollectionView [英] Silverlight and icollectionview

查看:159
本文介绍了Silverlight和的ICollectionView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一个DataGrid,我需要自定义添加排序,我还需要了解排序的确切顺序。

So I have a datagrid that I need to add custom sorting for and I also need to know the exact order of the sort.

我已阅读,为了做到这一点,我需要实现一个自定义的ICollectionView并将其绑定到数据网格。

I have read in order to do this I need to implement a custom icollectionview and bind it to the datagrid.

我遇到的问题是,微软的文档给这个接口上并没有很大的。有谁知道如何做到这一点还是对如何实现这个接口Silverlight的任何好的教程?

The problem I am having is that the documentation Microsoft gives on this interface is not that great. Does anyone know how to do this or have any good tutorials on how to implement this interface for silverlight?

推荐答案

我在寻找相同的,发现这篇文章从<一个href=\"http://www.scottlogic.co.uk/blog/wpf/2009/04/binding-a-silverlight-datagrid-to-dynamic-data-via-idictionary/comment-page-1/\"相对=nofollow>科林埃伯哈特的。它显示了如何实现使用的ICollectionView的实现分类

I'm looking for the same, and found this article from Colin Eberhardt. It shows how to implement sorting using an implementation of ICollectionView

如果你找出如何实现过滤,请让我知道。

If you figure out how to implement filtering, please let me know.

这篇关于Silverlight和的ICollectionView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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