![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | ListView, GridView, generic Dictionary and sorting Have a class TKey which implements IComparable<TKey>, IEquatable<TKey> and overrides object.Equals(object obj). A ListView named TheListView (XAML) (presenting using GridView) is bound to a Dictionary<TKey, TValue> (where TValue is whatever business object). I am not able to sort this list, anyone knows how to do ? (the CollectionView that may be returned by (CollectionView)CollectionViewSource.GetDefaultView(TheListView.DataContext) does not support sorting) (Of course I may use a SortedDictionary instead, but what if I want to sort differently than the IComparable implementation of TKey dictates ?) |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pivot with ListView using GridView | Enrico Campidoglio | Avalon | 0 | 10-27-2006 03:46 AM |
| Grouping in a GridView inside ListView | abe545@gmail.com | Avalon | 1 | 08-31-2006 08:02 AM |
| Feature request for ListView/GridView | Lei Jiang | Avalon | 0 | 03-12-2006 07:07 PM |
| Feature request for ListView/GridView | Lei Jiang | Avalon | 0 | 03-12-2006 12:20 PM |
| Feature request for ListView/GridView | Lei Jiang | Avalon | 0 | 03-12-2006 09:43 AM |