Binding to Data Overview
- 2 minutes to read
The DXGrid is a data-aware control designed to display data in a tabular format or card layout. The DXGrid cannot operate without a data source. It can be bound to data from a database, an XML file, or any data created at runtime. The grid can be bound to any object that implements the IEnumerable interface or its descendant (e.g., IList, ICollection). To bind the grid, you should assign a data source to the DataControlBase.ItemsSource property.
The DXGrid can be bound to data at design-time using the Items Source Configuration Wizard. Multiple data types and data binding options are supported. To learn more, see the Simplified Data Binding topic.
Tip
For information on how to create columns (in the Table View) or card fields (in the Card View) and bind them to data fields, see Creating Columns and Binding Them to Data Properties.
Concepts
- Binding to ICollectionView
- Simplified Data Binding
- DevExpress Data Sources
- Drag and Drop Data Binding
- Posting Data to a Connected Database
- Server Mode Overview
- LINQ Server Mode
- TreeListView Data Binding
- Unbound Columns
- Applying Data Annotations
- Managing Multi-Thread Data Updates
- Instant Feedback UI Mode
Examples
- How to Bind to Data Using the Items Source Configuration Wizard
- How to: Bind a Grid to an MS Access Database
- How to: Bind a Grid to an XML File
- How to: Display Unbound Data
- How to: Apply Data Annotations
- How to: Post Changes to SQL Database
- How to: Create a Master-Detail Grid
- How to: Bind a Grid to an ICollectionView