Chapter 12. Data Binding in Windows Forms by Using the BindingSource Component

After completing this chapter, you will be able to:

  • Add a BindingSource to a form in Visual Studio.

  • Create a BindingSource at run time.

  • Bind a BindingSource component in Visual Studio.

  • Bind a BindingSource component at run time.

  • Set the Sort and Filter properties of a BindingSource.

  • Add an item to an unbound BindingSource.

  • Respond to BindingSource Events.

In Chapter 11 we examined the low-level components that implement data binding on Windows Forms. As we've seen, the architecture is complex, and manipulating it can be, frankly, somewhat tedious.

The BindingSource class, new to Microsoft ADO.NET 2.0, acts as an intermediary between a data source and Windows Form controls, and ...

Get Microsoft® ADO.NET 2.0 Step by Step, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.