A newer version of this page is available. Switch to the current version.

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"/>