Binding to Data
The GridControl is a data-aware control designed to display data in a tabular format or card layout. The GridControl 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.
Concepts
- Binding to Data Overview
- Binding to ICollectionView
- Simplified Data Binding
- Binding to any Data Source with Virtual Sources
- Drag and Drop Data Binding
- Posting Data to a Connected Database
- Server Mode Overview
- LINQ Server Mode
- Instant Feedback UI Mode
- TreeListView Data Binding
- Unbound Columns
- Applying Data Annotations
- Managing Multi-Thread Data Updates
- Creating Columns and Binding Them to Data Properties
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