Re: Sortig DataGridView
- From: ClayB <clayb@xxxxxxxxxxxxxx>
- Date: 2 May 2007 07:28:26 -0700
I do not know if/where this is documented. This solution was 'deduced'
from past experience and looking at the available interfaces
involved.
There may be a simpler way to do it, but somehow you have to sort an
arbitary datasource. If you look at exactly what was added to the
BindingList class, it was a flag to indicate it is sortable, and a
method that actually does the sorting. This is sort of a minimal
requirement to be able to sort a list of arbitray objects. Granted,
BindingList could have exposed an IComparer object that it would use
in a sort algorithm, but I do not see such an interface/method
exposed.
=========================
Clay Burch
Syncfusion, Inc.
.
- Follow-Ups:
- Re: Sortig DataGridView
- From: ClayB
- Re: Sortig DataGridView
- References:
- Sortig DataGridView
- From: David McCallum
- Re: Sortig DataGridView
- From: RobinS
- Re: Sortig DataGridView
- From: ClayB
- Re: Sortig DataGridView
- From: David McCallum
- Re: Sortig DataGridView
- From: David McCallum
- Sortig DataGridView
- Prev by Date: Re: RichTextBox, current written Word
- Next by Date: Re: Sortig DataGridView
- Previous by thread: Re: Sortig DataGridView
- Next by thread: Re: Sortig DataGridView
- Index(es):
Relevant Pages
|