THE LINK I POSTED TO BOOK.ITZERO.COM IS TO AN ILLEGAL, PIRATED SITE. I DID
NOT KNOW THAT WHEN I POSTED. PLEASE REMOVE THIS ENTIRE THREAD FROM THE
"JT" wrote:
> overrides NeverMind
> NeverMind.Cancel
>
> When I implement the BindingListView<T> referenced in the code from the link
> below, the datagridview sorts well and filters well. But, when I go to
> remove the filter, any rows that did not match the filter criteria appear to
> be gone from the list. This happens if I set the filter on the
> BindingSource, or on the BindingListView<T> instance. Any help would be
> appreciated.
> --
> John
>
>
> "JT" wrote:
>
> > Never mind.
> >
> > I found this extremely helpful link to guide me. This actually looks like a
> > FANTASTIC book...
> >
> >
http://book.itzero.com/read/microsoft/0602/Addison.Wesley.Data.Binding.with.Windows.Forms.2.0.Programming.Smart.Client.Data.Applications.with.dot.NET.Jan.2006_html/032126892X/ch07.html
> > --
> > John
> >
> >
> > "JT" wrote:
> >
> > > Hi,
> > > I recently replaced a datatable with a lighter weight generic List<myClass>
> > > object. I created a BindingSource, made the List the DataSource for the
> > > BindingSource, and the set the BindingSource as the datasource for a
> > > DataGridView. I managed to implement filtering and sorting for single
> > > columns using FindAll and Sort methods of the List and delegates. What I
> > > cannot restore to the datagridview is the ability to sort by any column.
> > > This requires advanced sorting support. However, as I try to figure this
> > > implementation out, it leads me to one long series of help pages with NO
> > > EXAMPLES. I feel the key is the ListSortDescriptionCollection, but cannot
> > > find an example of this no matter how far I drill down into the online
> > > documentation.
> > >
> > > Bottom line - could I get an example of how to implement advanced sorting on
> > > a List<T> that will allow the datagridview to sort by any column?
> > >
> > > Thanks.
> > > --