[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
 [Expand]What's Installed
 [Expand].NET Core 3 Support
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Collapse]Data Grid
   [Expand]Getting Started
   [Expand]Implementation Details
   [Expand]Grid View Data Layout
   [Expand]Binding to Data
   [Expand]Master-Detail Data Representation
   [Expand]Data Editing and Validation
   [Expand]Filtering and Searching
   [Expand]Data Summaries
   [Expand]Paging and Scrolling
   [Expand]Focus, Navigation, Selection
   [Expand]Conditional Formatting
   [Expand]Appearance Customization
   [Expand]MVVM Enhancements
   [Expand]Printing and Exporting
   [Expand]End-User Interaction
   [Expand]Performance Improvement
   [Collapse]Design-Time Features
     Drag and Drop Data Binding
     Simplified Data Binding
     Customizing Unbound Grid
     Using the GridControl Tasks Smart Tag Panel
     Feature Browser
   [Expand]Visual Elements
   [Expand]End-User Capabilities
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Simplified Data Binding

The DXGrid features the Items Source Configuration Wizard. It's an easy-to-use data binding wizard that supports various data types and binding options.

To launch the wizard, click the Items Source Wizard button displayed within the GridControl smart tags panel.

Follow these steps to bind the grid to a datasource:

Expanded Step 1. Select the Items Source

  1. Data Access Technology. You can choose the desired data source type from one of the following:

    Data Access Technology Description
    Entity Framework The Microsoft® ADO.NET Entity Framework is an Object/Relational Mapping (ORM) framework that represents relational data as domain-specific objects. See Entity Framework 4.0 to learn more.
    ADO.NET Data Set The memory-resident representation of data that provides a consistent relational programming model regardless of the data source. See Data Binding Mechanism in ADO.NET to learn more.
    Linq to SQL Language-Integrated Query (LINQ) provider that translates language-integrated queries into the required SQL queries, and tabular results into defined objects. See LINQ to learn more.
    WCF Data Services WCF Data Services allows the use of the Open Data (OData) protocol to query data over the HTTP protocol.
    IList/IEnumerable Any data source implementing the IList or IEnumerable interface.
  2. Data Source. This region displays data sources of the selected type that are present in the project. To create a new data source, click the Create New button, which will close the Items Source Configuration Wizard and invoke the appropriate Data Source Configuration Wizard. The solution should be rebuilt, so that the created data source can be displayed in this region.

Expanded Step 2. Choose the Data Processing Mode

Select the data processing mode. A description of the selected mode is displayed on the right.

Expanded Step 3. Configure the Items Source

Lastly, configure the items source by selecting the required data table, and specifying various options such as sorting and grouping. The set of options depends on the selected data processing mode.

Click Finish. This binds the grid to data and closes the wizard.

Expanded See Also

Is this topic helpful?​​​​​​​