To bind the ASPxDataView control to a data source at runtime, use any object that implements the IEnumerable interface such as ADO.NET datasets, data readers (e.g., SqlDataReader, OleDbDataReader), and most collections. Assign the data object to the ASPxDataView.DataSource property value and call the ASPxDataView.DataBind method to bind the control to data.
In this example, a custom data source is created with the Enumerable.Range method. The item template for displaying data items is also created at runtime.
See Also:
ASPxDataView — Binding to Data
How to bind the ASPxDataView control to the data source declaratively
How to fill the unbound ASPxDataView control with data items at runtime