Show theme settings Shopping cart Download trialFree Trial
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.)

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxImageAndDataNavigationDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxImageAndDataNavigationDemos