Bind to Data
You can bind the GridControl to any object that implements the IEnumerable interface or its descendant (for example, IList, ICollection). To bind the control to data, you should assign a data source to the grid’s DataControlBase.ItemsSource property:
<Window xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid" ...>
<dxg:GridControl ItemsSource="{Binding Customers}" AutoGenerateColumns="AddNew"/>
</Window>
Concepts
- Bind to Local Data
- Bind to ICollectionView
- Server Data and Large Data Sources
- Bind to any Data Source with Virtual Sources
- Drag and Drop Data Binding