Home All Groups Group Topic Archive Search About

System.ComponentModel.ListSortDirection

Author
10 Feb 2006 3:59 PM
guy
I have a derived BindingList that implements sorting, this has been working
fine.

however when i click a grid column header the ListSortDirection on entry to
ApplySortCore is *** always *** Ascending.
Any idea why this has happened?
---guy---

Author
10 Feb 2006 4:55 PM
Bart Mermuys
Hi,

"guy" <g**@discussions.microsoft.com> wrote in message
news:5AEA3B58-3F35-497D-9C28-59F798D326D1@microsoft.com...
>I have a derived BindingList that implements sorting, this has been working
> fine.
>
> however when i click a grid column header the ListSortDirection on entry
> to
> ApplySortCore is *** always *** Ascending.

Did you also override SortDirectionCore and SortPropertyCore, it should
return the current sort direction and respectively the current sort
PropertyDescriptor.  You must also override IsSortedCore.

HTH,
Greetings

Show quoteHide quote
> Any idea why this has happened?
> ---guy---