Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to bind the ASPxDataView control to a data source at runtime

$
0
0

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

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>