Re: windows forms datagridview doesn't sort automatically
- From: "BillE" <belgie@xxxxxxxxxxx>
- Date: Mon, 19 May 2008 14:24:19 -0400
I did find some examples of adding sorting to a BindingList, but it seems
easier just to use datasets.
Thanks.
Bill
"Jack Jackson" <jjackson@xxxxxxxxxxxxxxxx> wrote in message
news:83b3345rm6v5cllouotr0ba9vna4pge8nr@xxxxxxxxxx
The BindingList(Of T) class does not implement sorting. If you search
the Internet you can find several examples of how to add sorting to
it.
I created my own class which subclasses BindingList, added sorting and
searching capabilities, then I use that class instead of BindingList.
On Mon, 19 May 2008 11:49:22 -0400, "BillE" <belgie@xxxxxxxxxxx>
wrote:
I'm building a windows forms application using vs2005, vb.net.
I have a form with a datagridview bound to a BindingSource.
Even though the Sortmode is set to Automatic for all columns, they do not
sort when the header is clicked.
Is this because of the type of datasource I am using?
How do I sort programmatically, if I can't sort automatically?
The Binding Source datasource is a class, which exposes a BindingList of
class objects.
Thanks
Bill
.
- References:
- windows forms datagridview doesn't sort automatically
- From: BillE
- Re: windows forms datagridview doesn't sort automatically
- From: Jack Jackson
- windows forms datagridview doesn't sort automatically
- Prev by Date: Re: winforms based product updates provision
- Next by Date: Re: BackgroundWorker question
- Previous by thread: Re: windows forms datagridview doesn't sort automatically
- Next by thread: FormBorderStyle.None hide windows bar...
- Index(es):
Relevant Pages
|