This example demonstrates how to bind the Data View control to a data source at runtime. When the control is loaded, the Load event's handler creates a data source, defines a template for data items, and binds the control to the data source.
At runtime, assign an object that implements the IEnumerable interface to the DataSource property and call the DataBind method to bind the ASPxDataView
control to this object.
- MyDataViewTemplate.cs (VB: MyDataViewTemplate.vb)
- Default.aspx (VB: Default.aspx)
- Default.aspx.cs (VB: Default.aspx.vb)
(you will be redirected to DevExpress.com to submit your response)