BindingListView<T> is a project hosted on GotDotNet that gives you search, sorting and filtering capabilities to a plain BindingList. For example if you have the following Person entity:
And you want to have a collection of persons bind to a datagrid, you can simply write the following:
What if you need to do some filtering, or simply sorting on the datagrid? Therefore you would need to create a custom collection class that implements a bunch of interfaces for having sorting, filtering and searching capabilities.
The BindingListView<T> class has all these functionalities built-in. You simply have to pass a list, and bind the BindingListView to the datagrid. The same way you would do with a DataSet and DataView. This means:
Sorting on a BindingListView is done through the Sort property, the same as on a DataView. For example:
personsView.Sort =
personsView.Filter =
You can also merge multiple sources to one view (functionality that the DataView doesn't support) through the AggregatedBindingListView<T>.
Remember Me
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.