Hi,
>I am using the SortableBindingList<T> class described in the MSDN Custom
>Data
[quoted text clipped - 9 lines]
> http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=76499 without a
> resolution. Is this a bug in .NET 2.0 or is there some other problem?
I think it is caused by some missing overrides in SortableBindingList<T> :
* Add two fields:
private PropertyDescriptor _sortProp = null;
private ListSortDirection _sortDir = ListSortDirection.Ascending;
* Add code inside ApplySortCore:
after "_isSorted=true" put :
_sortProp = property
_sortDir = direction
after "_isSorted=false" put:
_sortProp = null
* Add two more overrides:
protected override PropertyDescriptor SortPropertyCore
{
get { return _sortProp; }
}
protected override ListSortDirection SortDirectionCore
{
get { return _sortDir; }
}
HTH,
Greetings
> Thanks,
> John
JohnC - 19 Oct 2005 01:34 GMT
That was it, thanks!
> Hi,
>
[quoted text clipped - 42 lines]
> > Thanks,
> > John