Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Expand]Controls and Libraries
 [Collapse]Common Features
  [Collapse]Data Binding Common Concepts
    How to: Bind GridControl to Database and Implement Master-Detail Mode at Design Time
    How to: Bind a Control to a Database at Runtime
    How to: Bind a Control to Data Created at Runtime
    How to: Bind a Control to Data in an XML File
    Traditional Data Binding Methods
    Data Source Configuration Wizard
    Data Binding Mechanism in ADO.NET
    Binding Controls to XML Data
    Binding Controls to Data Created at Runtime
    Add Unbound Data to a Data-Aware Control (XtraGrid, XtraPivotGrid)
    Binding to Excel Data Sources
    Binding to LINQ to SQL Classes
    Unbound Sources
    Binding to Entity Framework Core
    Binding to OData
    Binding to SQL Data
    Data Annotation Attributes
    How to: Add Virtual Rows Using the UnboundSource Component
    Obtaining Fields Available in Data Source
  [Expand]Data Source Wizard
  [Expand]Expressions
  [Expand]Behaviors
  [Expand]Application Appearance
  [Expand]Filtering UI Context
  [Expand]High DPI Support
  [Expand]Scaffolding Wizard
  [Expand]Formatting Values
   HTML Text Formatting
  [Expand]Menus
  [Expand]Tooltip Management
  [Expand]Saving and Restoring Layouts
   Clipboard - Copy Data and Formatting
   Version Compatibility: Default Property Values
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Traditional Data Binding Methods

DevExpress data-aware .NET WinForms controls (XtraGrid, XtraPivotGrid, XtraTreeList, XtraScheduler, XtraChart and XtraVerticalGrid) can be bound to various data sources. This topic lists typical data sources to which controls can be bound. For data binding specifics that are related to specific controls, refer to the corresponding product's documentation.

Typical data sources supported by DevExpress data-aware .NET WinForms controls include:
Data source Description
BindingSource Simplifies binding controls to data by providing currency management, change notification, and other services between Windows Forms controls and data sources. The BindingSource component can act as a strongly-typed data source.
DataSet Represents a complete set of data that includes tables that contain, order, and constrain data, as well as the relationships between the tables. A DataSet can read and write data and schema as XML documents. See DataSets, DataTables, and DataViews for more information.
DataTable Represents one table of in-memory data.
BindingList<T> Provides a generic collection that supports data binding.
List<T> Represents a strongly typed list of objects that can be accessed by index. Provides methods to search, sort, and manipulate lists.
ITypedList Provides functionality to discover the schema for a bindable list where the properties available for binding differ from the public properties of the object to bind to.
IBindingList Provides features required to support both complex and simple scenarios when binding to a data source.
IList Represents a non-generic collection of objects that can be individually accessed by the index.
An array Any array of objects.

Data-aware controls usually provide the DataSource and DataMember properties that let you bind them to a data source. In most cases, a control can be bound to a data source using the DataSource property alone (the DataMember property is left set to an empty string).

A data source (e.g., a DataSet object) may contain several lists, tables or data relationships. To bind the control in this case, set the control's DataSource property to the aggregated data source and set its DataMember property to the name that identifies the desired table/list/data relationship.

Expanded See Also

How would you rate this topic?​​​​​​​