Back to Devexpress

Data Binding Mechanism in ADO.NET

windowsforms-2237-common-features-data-binding-data-binding-mechanism-in-adonet.md

latest1.8 KB
Original Source

Data Binding Mechanism in ADO.NET

  • Dec 04, 2020

ADO.NET gives you the means to connect to a database and represent its data as tables that can be bound to data-aware controls.

The BindingSource is a component that simplifies design-time data binding to a database or any class declared in code. All DevExpress data-aware controls can be bound to data with the help of this component. For more information, refer to the BindingSource component article in MSDN. To learn how to bind to a database using the BindingSource component at design time, see the following example: How to: Bind GridControl to Database and Implement Master-Detail Mode at Design Time

The DataSet is a major component of ADO.NET. It represents a collection of tables that you can relate to each other. A DataSet object is automatically created during the design-time setup of the BindingSource component. You can create a DataSet object manually when binding to a database in code. For an example, see How to: Bind a Control to a Database at Runtime.

See Also

How to: Bind GridControl to Database and Implement Master-Detail Mode at Design Time

How to: Bind a Control to a Database at Runtime