This is the Trace Id: 65582f1a208de31d79588798920936ce

Behind the Scenes: Implementing Filtering for Windows Forms Data Binding

Shows how to extend the generic BindingList and implement the filtering functionality of the IBindingListView.

Important! Selecting a language below will dynamically change the complete page content to that language.

Download
  • Version:

    1.0

    Date Published:

    15/07/2024

    File Name:

    BindingFiltering.zip

    File Size:

    219.7 KB

    When you bind Windows Forms controls to an ADO.NET data source, specifically with a BindingSource as an intermediary, the searching, sorting, and filtering capabilities built in to a DataView are automatically exposed by the BindingSource. However, when you want to bind to a list of business objects, you have to implement these features yourself. A good solution is a generic implementation that can be reused with various business objects. This article describes how to extend the generic BindingList and implement the filtering functionality of the IBindingListView. This implementation enables you to store custom business objects in a list that you can search, sort, and filter.
  • Supported Operating Systems

    Windows 2000 Server, Windows Server 2003, Windows Server 2008, Windows Vista, Windows XP

    Visual Studio 2005 or Visual Studio 2008
    .NET Framework 2.0
    Microsoft Windows Forms
  • To download the Behind the Scenes: Implementing Filtering for Windows Forms Data Binding document and associated code sample, click the Download button above.