Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Data Binding

FirstPrev12345NextLast v
Name: Naomi Moreno
Address: 918 Park Lane
Phone: 1 (11) 500 555-0
Name: Logan Hernandez
Address: 7625 Cloudview Dr.
Phone: 1 (11) 500 555-0
Name: Heidi Lopez
Address: 2514 Via Cordona
Phone: 1 (11) 500 555-0
Name: Rafael Raje
Address: 5269 Mt. Trinity Court
Phone: 1 (11) 500 555-0
Name: Jessie She
Address: 5866 Military E
Phone: 1 (11) 500 555-0
Name: Alfredo Gomez
Address: 9430 La Vista Avenue
Phone: 1 (11) 500 555-0
FirstPrev12345NextLast v

This demo illustrates how to bind the DevExpress ASP.NET Data View (ASPxDataView) to a data source. It supports standard data binding with any object that implements the IEnumerable or IDataSource interface (e.g., SqlDataSource, XmlDataSource).

In this example, the ASPxDataView control is bound to the XmlDataSource component, which obtains data from an XML file with the following structure.

<Contacts>
<Contact Name="..." Address="..." Phone ="..." PhotoUrl ="..." />
 ...
</Contacts>

The appearance of the ASPxDataView control's data items is defined via an ItemTemplate type template. Controls that make up the template are bound to data using data binding expressions. (See the ASPX code.)