On Wed, 18 Jul 2007 10:11:25 +0100, "Marc Gravell"
[quoted text, click to view] <marc.gravell@gmail.com> wrote:
>In addition to Paul's comment, for automatic support it all depends on
>the backing data-source.
>
>Note that DataGridView can perform single-column sorting using the
>IBindingList.ApplySort() method; so *if* you control the list, you
>could educate it how to sort correctly? By default, it doesn't support
>multi-column sorting, but I have a subclass of DataGridView that does
>this by using the IBindingListView.ApplySort() method on the backing
>data-source (if supported).
>I also have a subclass of BindingList<T> that implements this code
>simply by using the default compare on the data (via the
>PropertyDescriptors). I can post some limited code if needed...
>
>Marc
>
I would appreciate seeing your code.
I am surprised that no one else seems bothered by what I and my
co-worders consider to be the oddness of the sort. I checked my phone
book, and while it does ignore single quotes in sorting, it does not
ignore dashes like ADO does.
Even if you think the ADO sorting is OK it presents a problem for our
users. While we transition to ADO, we will still have some programs
that don't use ADO and will sort using SQL Server sort, which means
the users will see data displayed in different orders depending on
which program they run.
Does anyone know where the sorting algorithm is documented? I haven't