Files
docs-desktop/dotnet-desktop-guide/framework/winforms/controls/bindingsource-component.md
T
Andy De George c0ba284473 Initial winforms content migrated (#18)
* Merge winforms framework content to working branch (#14)

* Breadcrumb / TOC / Move net5 to net folder (#15)

* change path from net5 to net

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Add .net 5 winforms placeholder article (#16)

* added some metadata and adjusted net5 placeholder

* corrections

* corrections

* corrections

* Test1

* Swapping landing page vs concept

* fix links

* Fix links

* Fix desc
2020-09-01 16:26:21 -07:00

4.9 KiB

title, ms.date, helpviewer_keywords, ms.assetid
title ms.date helpviewer_keywords ms.assetid
BindingSource Component 03/30/2017
data binding [Windows Forms], Windows Forms
Windows Forms, data binding control
BindingSource component [Windows Forms]
3e2faf4c-f5b8-4fa6-9fbc-f59c37ec2fb9

BindingSource Component

Encapsulates a data source for binding to controls.

The xref:System.Windows.Forms.BindingSource component serves two purposes. First, it provides a layer of indirection when binding the controls on a form to data. This is accomplished by binding the xref:System.Windows.Forms.BindingSource component to your data source, and then binding the controls on your form to the xref:System.Windows.Forms.BindingSource component. All further interaction with the data, including navigating, sorting, filtering, and updating, is accomplished with calls to the xref:System.Windows.Forms.BindingSource component.

Second, the xref:System.Windows.Forms.BindingSource component can act as a strongly typed data source. Adding a type to the xref:System.Windows.Forms.BindingSource component with the xref:System.Windows.Forms.BindingSource.Add%2A method creates a list of that type.

In This Section

BindingSource Component Overview
Introduces the general concepts of the xref:System.Windows.Forms.BindingSource component, which allows you to bind a data source to a control.

How to: Bind Windows Forms Controls to DBNull Database Values
Shows how to handle a xref:System.DBNull value from the data source using the xref:System.Windows.Forms.BindingSource component.

How to: Sort and Filter ADO.NET Data with the Windows Forms BindingSource Component
Demonstrates using the xref:System.Windows.Forms.BindingSource component to apply sorts and filters to displayed data.

How to: Bind to a Web Service Using the Windows Forms BindingSource
Shows how to use the xref:System.Windows.Forms.BindingSource component to bind to a Web service.

How to: Handle Errors and Exceptions that Occur with Databinding
Demonstrates using the xref:System.Windows.Forms.BindingSource component to gracefully handle errors that occur in a data binding operation.

How to: Bind a Windows Forms Control to a Type
Demonstrates using a xref:System.Windows.Forms.BindingSource component to bind to a type.

How to: Bind a Windows Forms Control to a Factory Object
Demonstrates using a xref:System.Windows.Forms.BindingSource component to bind to a factory object or method.

How to: Customize Item Addition with the Windows Forms BindingSource
Demonstrates using a xref:System.Windows.Forms.BindingSource component to create new items and add them to a data source.

How to: Raise Change Notifications Using the BindingSource ResetItem Method
Demonstrates using a xref:System.Windows.Forms.BindingSource component to raise change-notification events for data sources that do not support change notification.

How to: Raise Change Notifications Using a BindingSource and the INotifyPropertyChanged Interface
Demonstrates how to use a type that inherits from the xref:System.ComponentModel.INotifyPropertyChanged with a xref:System.Windows.Forms.BindingSource control.

How to: Reflect Data Source Updates in a Windows Forms Control with the BindingSource
Demonstrates how to respond to changes in the data source using the xref:System.Windows.Forms.BindingSource component.

How to: Share Bound Data Across Forms Using the BindingSource Component
Shows how to use the xref:System.Windows.Forms.BindingSource to bind multiple forms to the same data source.

Reference

xref:System.Windows.Forms.BindingSource
Provides reference documentation for the xref:System.Windows.Forms.BindingSource component.

xref:System.Windows.Forms.BindingNavigator
Provides reference documentation for the xref:System.Windows.Forms.BindingNavigator control.

Windows Forms Data Binding
Contains links to topics describing the Windows Forms data binding architecture.

Also see Bind controls to data in Visual Studio.