Trace Id is missing

Unlock your potential with Microsoft Copilot

Get things done faster and unleash your creativity with the power of AI anywhere you go.
Microsoft Copilot app being utilized to generate pictures of a singing dog, assisting to identify a flower, and helping to generate an email to congratulate a coworker on a promotion.

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:

    4/10/2008

    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.

Follow Microsoft