|
|
| 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 |
|
|
|
|
This demo illustrates how to bind ASPxDataView to a data source.
It supports standard data binding and any object which implements the IEnumerable or IDataSource interface
(e.g. SqlDataSource, XmlDataSource) may be used as a data source for this control.
In this sample, the ASPxDataView control is bound to the XmlDataSource component that 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 compose the template are bound to data by using data binding expressions. (See ASPX code)