我正在尝试在 Silverlight 中的 My DatagridView 中对列进行排序
这是我的课
MyGrid.CanUserSortColumns = true;
public class Row
{
private Dictionary<string, object> _data = new Dictionary<string, object>();
public object this[string index]
{
get { return _data[index]; }
set { _data[index] = value; }
}
public Dictionary<string, object> GetData()
{
return _data;
}
}
ObservableCollection<Row> RowList = new ObservableCollection<Row>();
foreach (string _Row in _DATA)
{
Row row = new Row();
//some Data to add
RowList.Add(row);
}
}
PagedCollectionView RowListView = new PagedCollectionView(RowList);
this.MyGrid.ItemsSource = RowListView;
还是我不能排序?我能做些什么 ?